Find a decimal number which can be represented with 1's only and no 0's in binary, and takes 4 bits in binary. In other words, if you convert that decimal number into binary, it cannot be like 10101 which does contain 0's. It should only contain a certain number of 1's.
Submit your answer as the sum of digits of the binary-coded decimal of that decimal number.
For binary-coded decimal, read the wiki Binary-Coded Decimal .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
If We represent The numbers 8 to 15 in binary , we'll get the 4 bits of binary numbers. And 15 is the last number which can be represented by four "1" , in binary. And BCD or Binary -Coded Decimal is a special kind of representation of a decimal number in binary number . In Binary -Coded Decimal each individual digits of a number is converted into binary number and then by combining them all , The BCD code is generated. But always remember that a Binary -Coded Decimal in not a binary representation of a decimal number. The BCD or Binary -Coded Decimal of the number 15 is 00010101. The 0001 is the binary code of 1 and 0101 is the binary code of 5. So , The answer is 3 .