For a positive integer , define a sequence of integers by letting and for . Let . Determine the largest possible such that, for some positive integer , the numbers are all prime.
(This problem was suggested by Valery Senderov from Russia.)
For a positive integer , define a sequence of integers by letting and for . Let . Determine the largest possible such that, for some positive integer , the numbers are all prime.
(This problem was suggested by Valery Senderov from Russia.)
The answer is . If , then is not prime. If , then and are prime, while is composite. It now remains only to check that , and cannot all be prime for .
Suppose otherwise for the sake of contradiction that , and are all prime. Because , this implies that , and are all prime; in particular, is prime. Observe that , which implies that . Therefore, we see that is a quadratic residue modulo , so we may find some for which . For this , we have
which implies that . But is prime, so this implies that . We have also that , which implies that , yielding a contradiction.