Let be the greatest integer such that both and are perfect squares. What is the units digit of ?
Pick one
Solutions — 2
Solution 1
Suppose and for nonnegative integers and . Then
Because and have the same parity and their product is even, they must both be even, and it follows that one of them is and the other is for some with . Solving for gives
To maximize it is sufficient to maximize , and this will occur when and . Therefore , and its units digit is 8.
Because , successive terms in the sequence of squares, 1, 4, 9, 16, ..., differ by successive odd numbers; and because , the terms in this sequence that are two apart differ by successive multiples of 4. The two squares required in this problem differ by , a multiple of 4. It follows that the greatest such squares are two apart in the sequence of squares, so . Therefore these squares are and , and . Then , and its units digit is 8.
Solution 2
Because , successive terms in the sequence of squares, , differ by successive odd numbers; and because , the terms in this sequence that are two apart differ by successive multiples of 4. The two squares required in this problem differ by , a multiple of 4. It follows that the greatest such squares are two apart in the sequence of squares, so . Therefore these squares are and , and . Then , and its units digit is 8.