Browse · MathNet
PrintFall Mathematical Competition
Bulgaria algebra
Problem
Let and be prime numbers and let the sequence be defined by: for . Find and if it is known that for some integer .
Solution
Let and be odd. The recurrence relation gives and . Therefore and are even. Since and the number is even, we prove by induction that is even for every , a contradiction. Let us suppose now that . Then , since otherwise every , , is even. We shall prove by induction that for , i.e. for every , which is a contradiction. The assertion is obvious for . Assume that it follows for , i.e. . Then we have hence . It remains to consider the case . It follows by the recurrence relation that we have for and we conclude by induction that . Then we have . On the other hand, the recurrence relation gives . Hence i.e. for . Then and the Little Fermat's theorem gives that . Thus , i.e. . In this case we have and the required prime numbers are and .
Final answer
p = 2, q = 7
Techniques
Recurrence relationsFermat / Euler / Wilson theorems