Square, square

Randomly choose a positive integer less than 201 7 2017 2017^{2017} and call the number n . n.

Then what is the probability that we can choose a positive integer k k such that ± 1 2 ± 2 2 ± 3 2 ± ± k 2 = n , \pm1^2\pm2^2\pm3^2\pm\dots\pm k^2=n, where only one of + + and - counts for each ± ? \pm?

Give your answer in percentage to the nearest integer.


The answer is 100.

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.

1 solution

Sándor Daróczi
Jul 1, 2017

We claim that every natural number n n can be written in this form. The key idea is to notice that for any natural number m m we have

m 2 ( m + 1 ) 2 ( m + 2 ) 2 + ( m + 3 ) 2 = m 2 ( m 2 + 2 m + 1 ) ( m 2 + 4 m + 4 ) + m 2 + 6 m + 9 = 4 m^2 - (m+1)^2 - (m+2)^2 + (m+3)^2 = m^2 - (m^2 + 2m + 1) - (m^2 + 4m + 4) + m^2 + 6m + 9 = 4

so by

0 = 1 2 2 2 + 3 2 4 2 + 5 2 + 6 2 7 2 0 = -1^2-2^2+3^2-4^2+5^2+6^2-7^2

1 = 1 2 1 = 1^2

2 = 1 2 2 2 3 2 + 4 2 2 = -1^2-2^2-3^2+4^2

3 = 1 2 + 2 2 3 = -1^2+2^2

we can write the sum for any n n by only looking at the possible values of n ( m o d 4 ) n \pmod{4} .

1. n = 4 k n=4k

n = 1 2 2 2 + 3 2 4 2 + 5 2 + 6 2 7 2 + i = 8 k + 7 i 2 ( i + 1 ) 2 ( i + 2 ) 2 + ( i + 3 ) 2 n = -1^2-2^2+3^2-4^2+5^2+6^2-7^2 + \displaystyle \sum_{i=8}^{k+7} i^2 - (i+1)^2 - (i+2)^2 + (i+3)^2

2. n = 4 k + 1 n=4k+1

n = 1 2 + i = 2 k + 1 i 2 ( i + 1 ) 2 ( i + 2 ) 2 + ( i + 3 ) 2 n = 1^2 + \displaystyle \sum_{i=2}^{k+1} i^2 - (i+1)^2 - (i+2)^2 + (i+3)^2

3. n = 4 k + 2 n=4k+2

n = 1 2 2 2 3 2 + 4 2 + i = 5 k + 4 i 2 ( i + 1 ) 2 ( i + 2 ) 2 + ( i + 3 ) 2 n = -1^2-2^2-3^2+4^2 + \displaystyle \sum_{i=5}^{k+4} i^2 - (i+1)^2 - (i+2)^2 + (i+3)^2

4. n = 4 k + 3 n=4k+3

n = 1 2 + 2 2 + i = 3 k + 2 i 2 ( i + 1 ) 2 ( i + 2 ) 2 + ( i + 3 ) 2 n = -1^2+2^2 + \displaystyle \sum_{i=3}^{k+2} i^2 - (i+1)^2 - (i+2)^2 + (i+3)^2

where k k denoted any natural number.

Thus the answer is 100.

How do you come up with something like the first step?

Konstantin Zeis - 3 years, 11 months ago

If one has a conjecture that the condition holds for every natural number, he should think about a way to explicitly express any number in the given form. Pondering upon this I got the idea that if we manage to find a way to make some consecutive squares to a constant number with a special choice of plus/minus signs, we should be able to generalize the composition for all natural numbers. Clearly this is not possible when we are looking at 1, 2 or 3 consecutive squares (except some special cases), but examining any 4 such squares my idea is evident.

Sándor Daróczi - 3 years, 11 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...