What is the smallest positive number consisting of only 1's and 0's in its decimal representation that leaves a remainder of 5 when divided by 22?
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.
Denote this number N . Note that since N contains only 1's and 0's, it can be written as the sum of various powers of 10, or, more formally,
N = ∑ i = 0 n a i ⋅ 1 0 i
where a i is equal to either 1 or 0. Now, consider the first few values of 1 0 i ( m o d 2 2 ) .
1 0 0 ( m o d 2 2 ) = 1 1 0 1 ( m o d 2 2 ) = 1 0 1 0 2 ( m o d 2 2 ) = 1 2 1 0 3 ( m o d 2 2 ) = 1 0 1 0 4 ( m o d 2 2 ) = 1 2
After a few trials a pattern quickly emerges; when i is even, it leaves a remainder of 12, and when i is odd, it leaves a remainder of 10. Therefore, N is some combination of powers of 10 leaving remainders of 1, 10 and 12. Since N ≡ 5 ( m o d 2 2 ) , the sum of the remainders of this combination must also be. Let a represent the number of 1 0 1 's in N , b represent the number of 1 0 2 k + 1 's and c represent the number of 1 0 2 k 's. We have that:
a + 1 0 b + 1 2 c ≡ 5 ( m o d 2 2 ) .
After trialing a few values for a , b and c , we see that a = 1 , b = 0 , c = 4 satisfies the conditions and gives us the least value of N .
Since a = 1 , we have one 1 0 0 .
Since b = 0 , we have no 1 0 2 k + 1 's.
Since c = 4 , we have four 1 0 2 k 's, and we choose k = 1 , 2 , 3 , 4 to give us the least number of digits of N .
Hence, N = 1 0 0 + 1 0 2 + 1 0 4 + 1 0 6 + 1 0 8
N = 1 0 1 0 1 0 1 0 1 .