Find the sum of all positive integers n such that there exists p ∈ N that satisfies the divisibility
p n − 1 + ( p + 2 ) n − 1 ∣ p n + ( p + 2 ) n .
This problem is a generalization by me of a problem that appeared in St. Petersburg City Mathematical Olympiad 1996.
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.
Yep. Same solution here.
Here's my solution.
Claim : Only n = 1 works.
We prove our claim in 3 steps. First we define f : N → R by f ( n ) = p n − 1 + ( p + 2 ) n − 1 p n + ( p + 2 ) n for a fixed p ∈ N .
Step 1 : We show that f ( n ) is increasing in [ 1 , ∞ ) , that is, f ( n + 1 ) > f ( n ) for all n ∈ N . Letting p n − 1 = x and ( p + 2 ) n − 1 = y we have f ( n + 1 ) > f ( n ) ⟹ p x + ( p + 2 ) y p 2 x + ( p + 2 ) 2 y > x + y p x + ( p + 2 ) y . Cross multiplying and cancelling gives p 2 + ( p + 2 ) 2 > 2 p ( p + 2 ) ⟹ 4 > 0 which is trivially true.
Step 2 : We bound the range of f by computing the minimum and the maximum. Since f is increasing, the minimum occurs at the minimum value of n and the maximum occurs at the maximum value of n in the domain.
So we have min f = f ( 1 ) = 2 p + ( p + 2 ) = p + 1 . To compute the maximum, we let n → ∞ :
n → ∞ lim p n − 1 + ( p + 2 ) n − 1 p n + ( p + 2 ) n = n → ∞ lim ( p + 2 p ) n − 1 + 1 p ( p + 2 p ) n − 1 + ( p + 2 ) = p + 2 . So the range of f is [ p + 1 , p + 2 ) .
Step 3 : Step 2 implies that f can give only two integer values, p + 1 and p + 2 . Time to deal with them one by one.
If f ( n ) = p + 2 , then p n + ( p + 2 ) n = ( p + 2 ) ( p n − 1 + ( p + 2 ) n − 1 ) ⟹ p n − 1 = 0 which is absurd.
If f ( n ) = p + 1 , then p n + ( p + 2 ) n = ( p + 1 ) ( p n − 1 + ( p + 2 ) n − 1 ) which after expanding and manipulating becomes p n − 1 = ( p + 2 ) n − 1 ⟹ n − 1 = 0 ⟹ n = 1 .
Therefore n = 1 is the only solution over all such p .
EDIT : A way more easier solution: Let x = p n + ( p + 2 ) n and y = p n − 1 + ( p + 2 ) n − 1 . Now notice that: x = ( p + 2 ) y − 2 p n − 1 . If y ∣ x then y ∣ 2 p n − 1 . Then y ≤ 2 p n − 1 ⟹ p n − 1 ≥ ( p + 2 ) n − 1 which is true only for n = 1 .
Let n ≥ 2
p n + ( p + 2 ) n =
( 2 p + 2 ) ( p n − 1 + ( p + 2 ) n − 1 ) − ( p n − 2 + ( p + 2 ) n − 2 ) p ( p + 2 )
So p n − 1 + ( p + 2 ) n − 1 ∣ p ( p + 2 ) ( p n − 2 + ( p + 2 ) n − 2 ) but unless p = 2 , this implies that p n − 1 + ( p + 2 ) n − 1 ∣ ( p n − 2 + ( p + 2 ) n − 2 ) but that can't be true as a number can's divide anything smaller than itself .
Is the above proof correct?
Log in to reply
That is the official solution. Funnily enough, I solved it @Jubayer Nirjhor 's way.
Yes, that's correct. This is the official solution to the problem that appeared in St. PCMO 1996.
Can't we generalize the problem further by saying that if a , b are coprime positive numbers such that a n + b n ∣ a n + 1 + b n + 1 ,then n = 0 ?
Log in to reply
Yes we can. But I don't think that they have to be coprime. The only condition we need is a ≡ b ( m o d 2 ) .
p n − 1 + ( p + 2 ) n − 1 ∣ p n + ( p + 2 ) n ⇔ p n − 1 + ( p + 2 ) n − 1 ∣ p n + ( p + 2 ) n − ( p + 2 ) ( p n − 1 + ( p + 2 ) n − 1 ) ⇔ p n − 1 + ( p + 2 ) n − 1 ∣ 2 p n − 1 ⇒ ( p + 2 ) n − 1 ≤ p n − 1 ⇒ n = 1
Hence, the answer is 1 .
Let a ∣ b denote that a divides b . Now [ p n − 1 + ( p + 2 ) n − 1 ] ∣ [ p n + ( p + 2 ) n − ( p + 2 ) p n − 1 + ( p + 2 ) ( p + 2 ) n − 1 ] = − 2 p n − 1 . So, [ p n − 1 + ( p + 2 ) n − 1 ] ∣ [ 2 p n − 1 − p n − 1 − ( p + 2 ) n − 1 ] = p n − 1 − ( p + 2 ) n − 1 . But p n − 1 + ( p + 2 ) n − 1 > p n − 1 − ( p + 2 ) n − 1 . Thus n − 1 = 0 which gives us the only solution.
Problem Loading...
Note Loading...
Set Loading...
Note that p n + ( p + 2 ) n = ( p + 1 ) ( p n − 1 + ( p + 2 ) n − 1 ) + ( ( p + 2 ) n − 1 − p n − 1 )
Thus p n − 1 + ( p + 2 ) n − 1 p n + ( p + 2 ) n = p + 1 + p n − 1 + ( p + 2 ) n − 1 ( p + 2 ) n − 1 − p n − 1
Since p n − 1 + ( p + 2 ) n − 1 ∣ p n + ( p + 2 ) n we must have that p n − 1 + ( p + 2 ) n − 1 ( p + 2 ) n − 1 − p n − 1 is an integer.
However, unless n = 1 at which p n − 1 + ( p + 2 ) n − 1 ( p + 2 ) n − 1 − p n − 1 = 0 , the numerator, which is a positive integer, is always less than the denominator, which is also a positive integer.
Thus our only solution is 1 .