More fun in 2016, Part 4

Find the largest integer n n such that n , n + 2016 n, n+2016 , and n 2016 n-2016 are all perfect squares.

Enter 666 if you come to the conclusion that no such n n exists.

Bonus Question (very hard) : Does there exist a rational number q q such that q , q + 2015 q,q+2015 and q 2015 q-2015 are all squares of rational numbers?


The answer is 4225.

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.

3 solutions

Aareyan Manzoor
Nov 23, 2015

Let { n = k 2 n + 2016 = s 2 n 2016 = t 2 \begin{cases}n=k^2\\n+2016=s^2\\n-2016=t^2\end{cases} . so we find that s 2 k 2 = 2016 ( s k ) ( s + k ) = 2016 s^2-k^2=2016\Longrightarrow (s-k)(s+k)=2016 k 2 t 2 = 2016 ( k t ) ( k + t ) = 2016 k^2-t^2=2016\Longrightarrow (k-t)(k+t)=2016 We see that s k s - k and s + k s + k are both factors of 2016. Similarly for k t k-t and k + t . k+t. This gives us a simultaneous system of equations for which we're looking for integer solutions. If we let the solutions to a 2 b 2 = 2016 a^2-b^2=2016 be ( a 1 , b 1 ) , ( a 2 , b 2 ) . . . , (a_1,b_1),(a_2,b_2)..., then we must have s s as an a i a_i and t t as a b i b_i . However, k k must also be both an a i a_i and a b i b_i . We find all pairs in a decreasing order and stop once we find the potential k k . We check and see that k = 65 k=65 satisfies the equation and is indeed the biggest possible k k . The answer is hence n = k 2 = 4225 n=k^2=4225

Thanks for a clear and systematic solution! (+1). It turns out that 4225 is the only solution.

Otto Bretscher - 5 years, 6 months ago

Log in to reply

How will one find then number of pairs (not explained in the solution).

Department 8 - 5 years, 6 months ago

Log in to reply

As Aareyan explains well, we need to think about the positive integer solutions of the equation a 2 b 2 = 2016 a^2-b^2=2016 . Since a + b a+b and a b a-b must be divisors of 2016, we can find the pairs ( a , b ) (a,b) by systematically going through all the divisors of 2016. I think we end up with 12 pairs of positive integers. (There are short-cuts.)

Otto Bretscher - 5 years, 6 months ago

Log in to reply

@Otto Bretscher Actually I am asking for short-cuts.

Department 8 - 5 years, 6 months ago

Log in to reply

@Department 8 2016 = 2 5 3 2 7 2016=2^5*3^2*7 solutions(positive ints)= when both s+k and s-k are either even or odd(not possible here). =all divisors - odd divisors - the divisors with factor 2 5 2^5 .=(5+1)(2+1)(1+1)-(2+1)(1+1)-(2+1)(1+1)=24. i get 24, and wolfram is telling total to be 48(as negative included). so i think i am right here

Aareyan Manzoor - 5 years, 6 months ago

Log in to reply

@Aareyan Manzoor Your count is off by a factor of 2, Aareyan, since we want s + k > s k s+k>s-k as we are counting positive solutions only. Luckily, we need to consider only 12 cases.

Otto Bretscher - 5 years, 6 months ago

Log in to reply

@Otto Bretscher oops, sir. i should have noticed that. thanks, will come in handy in future,

Aareyan Manzoor - 5 years, 6 months ago

Yes Same Method, Nice Problem.

Kushagra Sahni - 5 years, 6 months ago

Did same....

What about Bonus?

Dev Sharma - 5 years, 6 months ago
Otto Bretscher
Nov 23, 2015

This is an example of the Congruum Problem discussed and solved by Fibonacci in his book "Liber Quadratorum" of 1225.

What follows is merely an outline of a solution.

The problem is closely related to Pythagorean triples. Indeed, if we have a triple a 2 = b 2 + c 2 a^2=b^2+c^2 with b c = 1008 bc=1008 , then a 2 ± 2 b c = a 2 ± 2016 = ( b ± c ) 2 a^2\pm 2bc=a^2 \pm 2016=(b\pm c)^2 , so that n = a 2 n=a^2 solves our problem.

To find a triple a 2 = b 2 + c 2 a^2=b^2+c^2 with b c = 1008 bc=1008 , we use Euclid's formula and write b = 2 p q b=2pq and c = p 2 q 2 c=p^2-q^2 . From the condition b c = 1008 bc=1008 we quickly find that p = 8 , q = 1 , b = 16 , c = 63 p=8,q=1, b=16, c=63 and n = a 2 = b 2 + c 2 = 4225 n=a^2=b^2+c^2=\boxed{4225}

Aakash Khandelwal
Nov 23, 2015

We can also figure out that the last digit of the number of which n is square must be 5. Now its easy to check with calculator in hand that 65 is the solution

Not a good solution at all

Kushagra Sahni - 5 years, 6 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...