Problem:
Bernardo chooses a three-digit positive integer N and writes both its base- 5 and base-6 representations on a blackboard. Later LeRoy sees the two numbers Bernardo has written. Treating the two numbers as base-10 integers, he adds them to obtain an integer S. For example, if N=749, Bernardo writes the numbers 10,444 and 3,245, and LeRoy obtains the sum S=13,689. For how many choices of N are the two rightmost digits of S, in order, the same as those of 2N ?
Answer Choices:
A. 5
B. 10
C. 15
D. 20
E. 25
Solution:
Expand the set of three-digit positive integers to include integers N,0β€Nβ€99, with leading zeros appended. Because lcm(52,62,102)=900, such an integer N meets the required condition if and only if N+900 does. Therefore N can be considered to be chosen from the set of integers between 000 and 899, inclusive. Suppose that the last two digits in order of the base- 5 representation of N are a1β and a0β. Similarly, suppose that the last two digits of the base- 6 representation of N are b1β and b0β. By assumption, 2Nβ‘a0β+b0β (mod10), but Nβ‘a0β(mod5) and so
a0β+b0ββ‘2Nβ‘2a0β(mod10)
Thus a0ββ‘b0β(mod10) and because 0β€a0ββ€4 and 0β€b0ββ€5, it follows that a0β=b0β. Because Nβ‘a0β(mod5), it follows that there is an integer N1β such that N=5N1β+a0β. Also, Nβ‘a0β(mod6) implies that 5N1β+a0ββ‘a0β (mod6) and so N1ββ‘0(mod6). It follows that N1β=6N2β for some integer N2β and so N=30N2β+a0β. Similarly, Nβ‘5a1β+a0β(mod25) implies that 30N2β+a0ββ‘5a1β+a0β(mod25) and then N2ββ‘6N2ββ‘a1β(mod5). It follows that N2β=5N3β+a1β for some integer N3β and so N=150N3β+30a1β+a0β. Once more, Nβ‘6b1β+a0β(mod36) implies that 6N3ββ6a1β+a0ββ‘150N3β+30a1β+a0ββ‘6b1β+a0β (mod36) and then N3ββ‘a1β+b1β(mod6). It follows that N3β=6N4β+a1β+b1β for some integer N4β and so N=900N4β+180a1β+150b1β+a0β. Finally, 2Nβ‘ 10(a1β+b1β)+2a0β(mod100) implies that
60a1β+2a0ββ‘360a1β+300b1β+2a0ββ‘10a1β+10b1β+2a0β(mod100)
Therefore 5a1ββ‘b1β(mod10), equivalently, b1ββ‘0(mod5) and a1ββ‘b1β(mod2). Conversely, if N=900N4β+180a1β+150b1β+a0β,a0β=b0β, and 5a1ββ‘b1β(mod10),
then 2Nβ‘60a1β+2a0β=10(a1β+5a1β)+a0β+b0ββ‘10(a1β+b1β)+(a0β+b0β) (mod100). Because 0β€a1ββ€4 and 0β€b1ββ€5, it follows that there are exactly 5 different pairs (a1β,b1β), namely (0,0),(2,0),(4,0),(1,5), and (3,5). Each of these can be combined with 5 different values of a0β(0β€a0ββ€4), to determine exactly 25β different numbers N with the required property.
The problems on this page are the property of the MAA's American Mathematics Competitions