What is the smallest square-free composite number that can divide a number of the form ?
Problem 1155
Official solution
Solution:
It is easy to see that such a number can never be divisible by , or . They can be divisible by , the smallest example being .
What makes this problem hard is finding the next prime that can divide such a number. Let . Then the numbers modulo a prime will always be periodic, since , so we just need to compute one period and see if it contains .
Thus we find that modulo we get , modulo we get , modulo we get , and modulo we get , so none of these primes can ever divide .
But , so can also divide numbers of this form. Therefore the smallest composite number that can divide for some is , and the smallest such is .