1 Answers
Best Answer
You obtain the binary expansion of an integer by consecutively dividing the integer by 2 until you obtain 0.
1023=2*511+1
511=2*255+1
255=2*127+1
127=2*63+1
63=2*31+1
31=2*15+1
15=2*7+1
7=2*3+1
3=2*1+1
1=2*0+1
The successive remainders of each division represents the binary expansion from right to left.
1111111111
1023=2*511+1
511=2*255+1
255=2*127+1
127=2*63+1
63=2*31+1
31=2*15+1
15=2*7+1
7=2*3+1
3=2*1+1
1=2*0+1
The successive remainders of each division represents the binary expansion from right to left.
1111111111