Wednesday 4 July 2012

repdigit endings to squares


James Tanton ‏@jamestanton Wrote:

"2^2 ends with 4 and 12^2 ends with 44. Is there a square than ends 444? How about one that ends 4444?"

To which I think the answer is yes,..... and no.
38 squared is 1444
462 squared is 213444
538 squared is 289444 and there are many more... (so I'm pretty firm on the "yes".)


but I don't think you will ever see a square ending in 4444. Here's why:
This is a list of the square numbers that end in 444 from 1 to 100,000,000

00001444
00213444
00289444
00925444
01077444
02137444
02365444
03849444
04153444
06061444
06441444
08773444
09229444
11985444
12517444
15697444
16305444
19909444
20593444
24621444
25381444
29833444
30669444
35545444
36457444
41757444
42745444
48469444
49533444
55681444
56821444
63393444
64609444
71605444
72897444
80317444
81685444
89529444
90973444
99241444

Notice a pattern? Look at that digit in the thousands place...

Those are the squares of these numbers:
0038
0462
0538
0962
1038
1462
1538
1962
2038
2462
2538
2962
3038
3462
3538
3962
4038
4462
4538
4962
5038
5462
5538
5962
6038
6462
6538
6962
7038
7462
7538
7962
8038
8462
8538
8962
9038
9462
9538
9962

and another pattern appears, that may help us with a more formal proof:

I hadn't thought too much about the idea of digit repeats at the end of squares, and maybe you haven't either, so here is a quick question to get you started.
When speaking of square numbers:
What ending digits can repeat 2, 3 or more times? More particularly, is there any ending digit that repeats four (or more) times?



3 comments:

Joshua Zucker said...

I first heard this from Alan Schoenfeld in the form "What is the longest string of consecutive identical digits that can be found at the end of a perfect square?"

There are definitely solutions that don't require such a long list of cases in the end, though discovering them may mean that you go through that list.

Unknown said...

I've started some trials for the digit "9" (instead of 4). And I've noticed that the ones digit must be a 3 or a 7 so, once you square it, you get 9 in the ones place. However, I've noticed that the tens digits will always be even (or 0). So there does not exist a number whose square ends in "...99".

Then, I started at 1. But I've realized again that every tens digit is even or 0. So, this can only happen if the repeating digit is even. Now, when the repeating digit is 0, I'm fairly certain there are infinite numbers whose square will have as many 0's as you please.

So, what about 2? Well, the ones digit can't be anything because no number squared ends in a 2 (which I found rather interesting).

So, I'm about to work on 6 and 8 which I believe will give us results.

Unknown said...

Well, that didn't take too long. The 8 we can ignore since no perfect square ends in an 8. And the 6 (get this) has all odd values for the tens digit! Go figure. I wonder why 0 and 4 are the only ones that can satisfy this property?

And, further, I think cubes would be more interesting (instead of squaring numbers). Each digit can be represented in the ones place and the tens digits don't follow such an obvious pattern. I'll try to work on cubes and see what I get.