Determine all for which there exists an integer such that .
Solution
After factorising and into prime numbers, and , we see that we can write , where for all
The number is a perfect cube exactly when each of and is divisible by 3. Therefore, we use the given recursion and calculate the three sequences modulo 3:
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| 1 | 1 | 0 | 2 | 0 | 0 | 1 | 2 | 1 | 1 | 0 | 2 | 0 | |
| 0 | 2 | 2 | 1 | 0 | 1 | 1 | 2 | 0 | 2 | 2 | 1 | 0 |
We see that the columns repeat in a cycle of length eight and that the values of for which all three, , and , are divisible by 3, are those of the form .
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.