All the solutions of the following equation m 2 − 3 m + 1 = n 2 + n − 1 where m , n are positive integers can be written as ( n , m ) .
Find the value of ∣ m − n ∣ .
Notation: ∣ ⋅ ∣ denotes the absolute value function .
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.
This can be solved as a Diophantine equation treating one side of the equation like a single number:
m 2 − 3 m + ( − n 2 − n + 2 ) = 0 2 3 ± ( − 3 ) 2 − 4 ( − n 2 − n + 2 ) = 2 3 ± 4 n 2 + 4 n + 1 = 2 3 ± ( 2 n + 1 ) 2 = 2 3 ± ( 2 n + 1 )
We take the positive solution m = n + 2 so all the solutions can be written as ( n , m = n + 2 ) so
∣ ( n + 2 ) − n ∣ = 2
Problem Loading...
Note Loading...
Set Loading...
Completing squares, the given equation can be rewritten as
( m − 2 3 ) 2 − 4 5 = ( n + 2 1 ) 2 − 4 5 ⟹ ( 2 m − 3 ) 2 = ( 2 n + 1 ) 2 ⟹ 2 m − 3 = ± ( 2 n + 1 ) .
Now if m = 1 then ( 2 n + 1 ) 2 = 1 ⟹ n = 0 , so along with the given condition we know that m ≥ 2 , and thus
2 m − 3 = 2 n + 1 ⟹ 2 ( m − n ) = 4 ⟹ m − n = 2 .