I've come across two methods for converting a base 10 number into its base 2 equivalent. I want to know why they are equivalent.
Method 1: We're given a number $N$ to convert into binary
1) Find the greatest power of 2, which when subtracted from $N$, leaves a positive difference.
2) Let the difference be denoted as $N_1$
3) Now find the greatest power of 2, which when subtracted from $N_1$, produces a positive difference.
4) Continue this process until the difference is $0$.
5) The binary equivalent is obtained from the coeffiecients of a power series that forms the sum of the components. $1$s appear in the binary number in the positions for which terms appear in the power series, and $0$s appear in all other positions.
Example, converting $625$ (Base 10) to base 2.
625 - 512 = 113 = $N_1$
113-64 = 49 = $N_2$
49 - 32 = 17 = $N_3$
17 - 16 = 1 = $N_4$
1 - 1 = 0 = $N_5$
650 (Base 10) = $2^9 + 2^6 + 2^5 +2^4 + 2^0 = 1001110001_2$
Method 2:
1) Divide the base 10 number by 2
2) Record its remainder beside the quotient, then divide the quotient by 2.
3) Continue this process until the quotient is 0. Then take all the remainders from bottom to top, line them up, and you have the binary number
Example:
Convert 17 to base 2.
17/2 = 8R1
8/2 = 4R0
4/2 = 2R0
2/2 = 1R0
1/2 = 0R1
Our binary equivalent of 17 is: $10001_2$