Thursday, 29 March 2018

Repeating Digits in the Squares of Integers

Today I turned 25197 days old and none of the entries in the Online Encyclopaedia of Integer Sequences (OEIS) made much sense to me. I searched about for something of interest about this number and, after some dead-ends, I thought I'd square the number. The result was 634888809 which immediately caught my attention because of the repetition of the digit 8. I thought this result would be relatively rare and something that distinguishes 25197 from most other numbers. My question was how rare? I set about investigating using a Google spreadsheet and had soon found all the numbers between 1 and 26000 whose squares contain at least four consecutive 8's. It turns out that there is a total of only 14 such numbers.

Here are the numbers with their associated squares

Runs of four or more 8's (there are 14 of these):

16092588881
699248888064
942888887184
10094101888836
12202148888804
16090258888100
16667277788889
16849283888801
20221408888841
20359414488881
21187448888969
22917525188889
24267588887289
25197634888809

It can be seen that the squares of 12202 and 20221 contain a run of five 8's. Naturally, I was curious about runs of the other digits 1, 2, 3, 4, 5, 6, 7 and 9 and once again used the spreadsheet to investigate the matter. The results are detailed below:

Run of four or more 1's (there are 11 such numbers:

28488111104
333411115556
10541111112681
10542111133764
10543111154849
10544111175936
10545111197025
17062291111844
20276411116176
20521421111441
23877570111129

What's interesting above is the cluster of numbers 10541, 10542, 10543, 10544 and 10545 that all produce at least four leading 1's (10541 produces five leading 1's).

Runs of four or more 2's (there are 18 of these):

333511122225
349612222016
458521022225
471422221796
541529322225
610137222201
833269422224
855773222249
13335177822225
14585212722225
15415237622225
16665277722225
16668277822224
20548422220304
20838434222244
23335544522225
24585604422225
25415645922225

Runs of four or more 3's (there are eight of these):

577433339076
730353333809
11547133333209
18037325333369
18257333318049
18258333354564
18259333391081
23094533332836

There is another cluster here consisting of 18257, 18258 and 18259, all producing a run of four leading 3's when squared. There is also a run of five 3's produced by 11547 when it is squared.

Runs of four or more 4's (there are 12 of these):

569632444416
666744448889
11595134444025
15393236944449
15857251444449
21081444408561
21082444450724
21083444492889
24229587044441
24788614444944
25386644448996
25771664144441

Here again there is a cluster of 21081, 21082 and 21083, all producing a run of four 4's when squared. One number 15857 produces a run of five 4's when squared. The square of 24788 contains six 4's though only four of them are consecutive.

Runs of four or more 5's (there are 14 of these):

23575555449
394415555136
416617355556
833469455556
10274105555076
10419108555561
12472155550784
15986255552196
16666277755556
20629425555641
20834434055556
22925525555625
23570555544900
23571555592041

Here we see that the square of 22925 contains six 5's, although only four of them are consecutive.

Runs of four or more 6's (there are ten of these):

12911666681
16332666689
25826666724
516426666896
816566667225
12910166668100
16330266668900
17224296666176
25819666620761
25820666672400

Here there are a pair of numbers, 25819 and 25820, that both produce a run of four leading 6's when squared.

Runs of four or more 7's (there are seven of these):

881977774761
11076122677776
13924193877776
16964287777296
18915357777225
21858477772164
24037577777369

Runs of four or more 9's (there are only two of these):

707149999041
14142199996164

It's surprising that there are only two numbers between 1 and 26000 that produce four sequential 9's when squared and the one is double the other. I'll need to investigate the reason for this paucity.

I've proposed the sequence of numbers that produce four or more 8's when squared as a candidate for the OEIS. If it's approved, I'll propose the other runs of four or more digits are candidate sequences as well.

No comments:

Post a Comment