Browse · MathNet
PrintBaltic Way shortlist
Baltic Way number theory
Problem
Let be an odd prime. Find all positive integers for which is a positive integer?
Solution
Answer: . Assume that is a positive integer. Then , and hence Now for some positive integer , and since . Thus , and since is prime we get and . Hence and is the only possible value of . In this case we have
Final answer
n = ((p+1)/2)^2
Techniques
Techniques: modulo, size analysis, order analysis, inequalitiesFactorization techniquesPrime numbersQuadratic functions