Day 19: Counting Squares

How many perfect squares are there in the infinite set: { 1161 , 111561 , 11115561 , 1111155561 , , 111 1 n + 1 555 5 n 1 61 , } \{1161, 111561, 11115561, 1111155561, \ldots, \underbrace{111\cdots 1}_{n+1}\underbrace{555\cdots 5}_{n-1}61,\ldots\} This problem is part of the set Advent Calendar 2014 .


The answer is 0.

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.

2 solutions

Michael Ng
Dec 18, 2014

We prove that 111 1 k 555 5 k 2 56 \underbrace{111\cdots 1}_{k}\underbrace{555\cdots 5}_{k-2}56 is always a perfect square ( k 2 k\geq 2 ).

We notice that it can be written in the form: 1 0 2 k 1 9 + 4 × 1 0 k 1 9 + 1 = 1 0 2 k 1 + 4 × 1 0 k 4 + 9 9 = 1 0 2 k + 4 × 1 0 k + 4 9 = ( 1 0 k + 2 3 ) 2 \frac{10^{2k}-1}{9} + 4 \times \frac{10^{k}-1}{9} + 1 = \frac{10^{2k}-1 + 4 \times 10^{k}-4 + 9}{9} = \\ \frac{10^{2k} + 4 \times 10^{k} + 4}{9} = (\frac{10^k+2}{3})^2 So it is a perfect square.

Also, 1 0 k + 2 3 34 \frac{10^k+2}{3} \geq 34 as it increases from k = 2 k=2 .

Now all the squares in the set are 5 5 more than these squares. But the next square numbers after these squares are always at least 34 + 35 34 + 35 after them. Hence no numbers in the set are perfect squares, and the answer is 0 \boxed{0} as required.

As k k approaches infinity, you can also say it approaches to becoming a perfect square as more zeros start appearing in the fractional part. Just something interesting I observed.

Julian Poon - 6 years, 5 months ago
Laurent Shorts
Jun 11, 2016

As 1 0 n ( 1 ) n 10^n\equiv(-1)^n modulus 11, we have :

111 1 2 m 555 5 2 m 2 61 ( 1 + 1 1 + 1 ) + ( 5 + 5 5 + 5 ) 6 + 1 6 \underbrace{111\cdots 1}_{2m}\underbrace{555\cdots 5}_{2m-2}61\equiv(-1+1-1\cdots +1)+(-5+5-5\cdots +5)-6+1\equiv 6 modulus 11,

and

111 1 2 m + 1 555 5 2 m 1 61 ( 1 + 1 1 1 ) + ( 5 5 + 5 ) 6 + 1 1 + 5 6 + 1 10 \underbrace{111\cdots 1}_{2m+1}\underbrace{555\cdots 5}_{2m-1}61\equiv(-1+1-1\cdots -1)+(5-5\cdots +5)-6+1\equiv -1+5-6+1\equiv 10 modulus 11.

But no square is congruent to 6 or 10 modulus 11:

x x\equiv x 2 x^2\equiv
0 0
1 1
2 4
3 9
4 5
5 3
6 3
7 5
8 9
9 4
10 1

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...