Given that are positive integers such that and find all solutions to the equation above and enter your answer as
Inspiration: [Russian Mathematical Olympiad, 1997]
For prime numbers and solve
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
It is clear that a > b ≥ 1 . Looking mod b gives b ∣ a n − 1 ( a − 1 ) and since g cd ( a , b ) = 1 we get b ∣ a − 1 and a = b c + 1 for a positive integer c . Looking mod a gives a ∣ b 2 + 1 . Thus a ∣ b 2 + 1 − a ≥ 0 . Or a ∣ b 2 + 1 − ( b c + 1 ) = b ( b − c ) and a ∣ b − c . But for b − c > 0 we get b + 1 ≤ a ≤ b − c , which is a contradiction. Hence b = c and a = b 2 + 1 .
The equation becomes ( b 2 + 1 ) n − b n + 1 = ( b 2 + b + 1 ) n − 1 Suppose that p is a prime divisor of b 2 + b + 1 . Looking mod p gives ( − b ) n ≡ p b n + 1 or b ≡ p ( − 1 ) n . For n being odd, it follows that b + 1 ≡ p 0 , which is impossible since g cd ( b + 1 , b 2 + b + 1 ) = 1 . Thus n is even and p ∣ b − 1 and p ∣ b 2 + b + 1 − b ( b − 1 ) = 2 b + 1 p ∣ ( 2 b + 1 ) − 2 ( b − 1 ) = 3 So p = 3 is the only prime divisor of b 2 + b + 1 and b 2 + b + 1 = 3 k for a positive integer k .
We have ( 2 b + 1 ) 2 = 4 × 3 k − 3 . LHS of this equation is divisible by 9 , but for k > 1 RHS is not divisible by 9 . Thus k = 1 . It follows that b = 1 and a = 2 . Now, the original equation is 2 n − 1 = 3 n − 1 . Its immediate that n = 2 .
Thus the only solution is ( a , b , n ) = ( 2 , 1 , 2 ) and answer is 5 .