Excess - 3 - code is also known as
Self-complementing code
The Excess-3 code is a non-weighted binary-coded decimal (BCD) code. This means that unlike standard binary or weighted BCD codes (like 8-4-2-1 BCD), each bit position in an Excess-3 digit does not represent a specific power of two or a fixed weight. Instead, it is formed by adding decimal 3 (or binary 0011) to each 4-bit BCD digit.
For instance, to find the Excess-3 code for the decimal digit 0:
Similarly, for decimal 1, its BCD is 0001. Adding 0011 to it gives $0001 + 0011 = 0100$, which is the Excess-3 code for 1.
The Excess-3 code possesses a very important characteristic: it is a self-complementing code. This property is why it is frequently referred to by this name. A code is considered self-complementing if the 9's complement of a decimal digit can be directly obtained by performing a 1's complement (bit inversion) operation on its Excess-3 representation.
This unique feature is highly beneficial in digital circuit design, particularly for simplifying subtraction operations, as it eliminates the need for separate circuits to calculate the 9's complement.
| Decimal Digit | Excess-3 Code | 1's Complement of Excess-3 Code | Decimal Value Represented by 1's Complement (Excess-3) | 9's Complement of Original Decimal Digit |
|---|---|---|---|---|
| 0 | 0011 | 1100 | 9 | 9 |
| 1 | 0100 | 1011 | 8 | 8 |
| 2 | 0101 | 1010 | 7 | 7 |
| 3 | 0110 | 1001 | 6 | 6 |
| 4 | 0111 | 1000 | 5 | 5 |
| 5 | 1000 | 0111 | 4 | 4 |
| 6 | 1001 | 0110 | 3 | 3 |
| 7 | 1010 | 0101 | 2 | 2 |
| 8 | 1011 | 0100 | 1 | 1 |
| 9 | 1100 | 0011 | 0 | 0 |
As illustrated in the table, for any decimal digit, taking the 1's complement (inverting all bits) of its Excess-3 representation directly yields another Excess-3 code. When this new Excess-3 code is converted back to its decimal equivalent (by subtracting 0011), it precisely matches the 9's complement of the original decimal digit. For example, for decimal 2, Excess-3 is 0101. Its 1's complement is 1010. Interpreting 1010 as an Excess-3 code, we subtract 0011: $1010 - 0011 = 0111$, which is decimal 7. The 9's complement of 2 is indeed 7. This direct relationship is what defines the self-complementing property.
Given these definitions, the correct term for Excess-3 code based on its unique property is "Self-complementing code."
Consider the following statements :
1. (25)! + 1 is divisible by 26
2. (6)! + 1 is divisible by 7
Which of the above statements is/are correct ?
If the sum S is divided by 8, what is the remainder ?
If the sum S is divided by 60, what is the remainder ?
Find the sum of squares of the greatest value and the smallest value of K in the number so that the number 45082K is divisible by 3.
How many composite numbers are there from 53 to 97 ?