is the smallest 3-digit positive integer such that has last three digits of ...396. What is the sum of the digits of ?
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.
Let x = 1 0 0 a + 1 0 b + c , where a, b, and c are single digit positive integers.
What do we know? x 2 has to end in 3 9 6 , so it has to end in 9 6 . Let's focus on b and c for now and come back to a later.
Whatever a is, ( 1 0 b + c ) 2 must end in 96. Expanding, we get 1 0 0 b 2 + 2 0 b c + c 2 = . . . 9 6 . We know that 1 0 0 b 2 is not going to affect the last two digits as it is already at least 100. That gives us 2 0 b c + c 2 = . . . 9 6 . Because c is a single digit, it must be either 4 or 6 for the expression to end in 6 because 2 0 b c will only affect the tens digit. Casework:
c = 4 ,
8 0 b + 1 6 = . . . 9 6 ,
8 0 b = . . . 8 0 . From this, we can see that b is either 1 or 6, giving us 2 cases.
c = 6 ,
1 2 0 b + 3 6 = . . . 9 6 ,
1 2 0 b = . . . 6 0 . From this we can see that b can be 3 or 8, giving us 2 more cases.
We know that the three digit number x has to end in 14, 16, 36 or 86. Now we use a , so more casework:
( 1 0 0 a + 1 4 ) 2 = . . . 3 9 6 ,
1 0 0 0 0 a 2 + 2 8 0 0 a + 1 9 6 = . . . 3 9 6 .
1 0 0 0 0 a 2 clearly won't affect the hundreds, tens, or ones digit, so we can throw that out.
2 8 0 0 a + 1 9 6 = . . . 3 9 6 ,
2 8 0 0 a = . . . 2 0 0 . From this, we can see that a must be 4 , giving us one answer, 4 1 4 .
We should still check the others to make sure we have the smallest, though.
Similar expansions with 1 0 0 a + 6 4 and 1 0 0 a + 3 6 give:
1 2 8 0 0 a = . . . 7 0 0 , from which we can see no value of a will make 8 into 7, and
7 2 0 0 a = . . . 1 0 0 , from which we can also see no value of a will make 2 into 1.
Expansion with ( 1 0 0 a + 8 6 ) 2 gives 1 0 0 0 0 a 2 + 1 7 2 0 a + 7 3 9 6 = . . . 3 9 6 ,
so 1 7 2 0 a = . . . 0 0 0 , so a can be 0 or 5. But wait! x has to be 3-digit, so a cannot be 0. That gives us only one more answer, 586.
414 is clearly less than 586. Therefore, our answer is 4 1 4 and the sum of the digits is 9 .