Problem:
Jim starts with a positive integer n and creates a sequence of numbers. Each successive number is obtained by subtracting the largest possible integer square less than or equal to the current number until zero is reached. For example, if Jim starts with n=55, then his sequence contains 5 numbers:
55β726β222β121β12β====β556210β
Let N be the smallest number for which Jimβs sequence has 8 numbers. What is the units digit of N?
Answer Choices:
A. 1
B. 3
C. 5
D. 7
E. 9
Solution:
Let the sequence be (a1β,a2β,β¦,a8β). For j>1,ajβ1β=ajβ+m2 for some m such that ajβ<(m+1)2βm2=2m+1. To minimize the value of a1β, construct the sequence in reverse order and choose the smallest possible value of m for each j,2β€jβ€8. The terms in reverse order are a8β=0, a7β=1,a6β=1+12=2,a5β=2+12=3,a4β=3+22=7,a3β=7+42=23, a2β=23+122=167, and N=a1β=167+842=7223, which has the unit digit (B)3β.
The problems on this page are the property of the MAA's American Mathematics Competitions