Delete and Repeat till Complete

by Simon Whitechapel

Think of a number. Let's say it's 265. Reverse it to get 562. Now, add the two numbers and repeat, like this:

265 + 652 = 827; 827 + 728 = 1555; 1555 + 5551 = 7106; 7106 + 6017 = 13123; 13123 + 32131 = 45254; 45254 + 45254 = 90508; 90508 + 80509 = 171017...

Strictly speaking, the sequence never ends: the numbers just get larger and larger. Mathematically speaking, however, something interesting has happened at the fifth step, 13123 + 32131 = 45254. 45254 is interesting because it's a palindrome: it reads the same forwards as backwards. 265 isn't unusual: most small numbers quickly produce a palindrome and the number 196 is famous precisely because, so far, it hasn't, although the procedure has been carried to many thousands of steps, producing numbers many thousands of digits long.

And plainly, every number produced so far in that sequence has not ended in a palindrome either. Perhaps the sequence will carry on for ever without producing a palindrome. As yet no-one knows and no-one can prove the result one way or another, although it has been proved that a palindrome is never produced when the procedure is carried out in base two on the number 10110 (22 in base ten).1

Much easier is a proof of the result when the procedure is carried out in reverse: think of a number; reverse it; subtract the higher from the lower; then repeat. There are only two possible outcomes: the sequence will end in zero, after a single-digit number or palindrome has been created; or the sequence will fall into an endless loop. Here are some examples of the first possibility:

10: 10 - 01 = 9; 9 - 9 = 0
12: 21 - 12 = 9; 9 - 9 = 0
13: 31 - 13 = 18; 81 - 18 = 63; 63 - 36 = 27; 72 - 27 = 45; 54 - 45 = 9; 9 - 9 = 0
14>27>45>9>0
15>36>27>45>9>0
16>45>9>0
17>54>9>0
68>18>63>27>45>9>0
70>63>27>45>9>0
75>18>63>27>45>9>0
743>396>297>495>99>0
745>198>693>297>495>99>0
5333>1998>6993>2997>4995>999>0
5337>1998>6993>2997>4995>999>0
12334>30987>47916>14058>70983>32076>34947>
   >39996>29997>49995>9999>0
12335>40986>27918>54054>9009>0
12342>11979>85932>61974>14058>70983>32076
   >34947>39996>29997>49995>9999>0

And here are some examples of the second possibility, in which the numbers fall into a loop:

1012>1089>8712>6534>2178>6534
1023>2178>6534>2178
10012>10989>87912>65934>21978>65934
10023>21978>65934>21978

These are all numbers in base 10. In certain other bases, the loop can be much shorter:

10123>10123>10123...
212013>212013>212013...

To see why this happens, examine these equations:

21013 - 10123 = 10123 (6410 - 3210 = 3210)
212013 - 102123 = 102123 (20810 - 10410 = 10410)

If x-y = y, x = y+y; that is 2y = x. This introduces the concept of multiplicative palindromes:

Base 3

10123 x 2 = 21013 (3210 x 2 = 6410)
102123 x 2 = 212013 (10410 x 2 = 20810)
1022123 x 2 = 2122013 (32010 x 2 = 64010)
10222123 x 2 = 21222013 (96810 x 2 = 193610)

Base 4

10234 x 3 = 32014 (7510 x 3 = 22510)
103234 x 3 = 323014 (31510 x 3 = 94510)
1033234 x 3 = 3233014 (127510 x 3 = 382510)
10333234 x 3 = 32333014 (511510 x 3 = 1534510)

Base 5

1435 x 2 = 3415 (4810 x 2 = 9610)
13135 x 2 = 31315 (20810 x 2 = 41610)
14435 x 2 = 34415 (24810 x 2 = 49610)
130135 x 2 = 310315 (100810 x 2 = 201610)
144435 x 2 = 344415 (124810 x 2 = 249610)
1300135 x 2 = 3100315 (500810 x 2 = 1001610)
1313135 x 2 = 3131315 (520810 x 2 = 1041610)
1431435 x 2 = 3413415 (604810 x 2 = 1209610)
1444435 x 2 = 3444415 (624810 x 2 = 1249610)
13000135 x 2 = 31000315 (2500810 x 2 = 5001610)
13143135 x 2 = 31341315 (2620810 x 2 = 5241610)
14301435 x 2 = 34103415 (3004810 x 2 = 6009610)
14444435 x 2 = 34444415 (3124810 x 2 = 6249610)
10345 x 4 = 43015 (14410 x 4 = 57610)
104345 x 4 = 434015 (74410 x 4 = 297610)
1044345 x 4 = 4344015 (374410 x 4 = 1497610)
10444345 x 4 = 43444015 (1874410 x 4 = 7497610)

Base 6

21346 x 2 = 43126 (49010 x 2 = 98010)
215346 x 2 = 435126 (301010 x 2 = 602010)
2155346 x 2 = 4355126 (1813010 x 2 = 3626010)
21555346 x 2 = 43555126 (10885010 x 2 = 21770010)
10456 x 5 = 54016 (24510 x 5 = 122510)
105456 x 5 = 545016 (150510 x 5 = 752510)
1055456 x 5 = 5455016 (906510 x 5 = 4532510)
10555456 x 5 = 54555016 (5442510 x 5 = 27212510)

Base 7

1657 x 3 = 5617 (9610 x 3 = 28810)
15157 x 3 = 51517 (60010 x 3 = 180010)
16657 x 3 = 56617 (68410 x 3 = 205210)
150157 x 3 = 510517 (412810 x 3 = 1238410)
166657 x 3 = 566617 (480010 x 3 = 1440010)
1500157 x 3 = 5100517 (2882410 x 3 = 8647210)
1515157 x 3 = 5151517 (2941210 x 3 = 8823610)
1651657 x 3 = 5615617 (3302410 x 3 = 9907210)
1666657 x 3 = 5666617 (3361210 x 3 = 10083610)
15000157 x 3 = 51000517 (20169610 x 3 = 60508810)
15165157 x 3 = 51561517 (20640010 x 3 = 61920010)
16501657 x 3 = 56105617 (23059210 x 3 = 69177610)
16666657 x 3 = 56666617 (23529610 x 3 = 70588810)
10567 x 6 = 65017 (38410 x 6 = 230410)
106567 x 6 = 656017 (273610 x 6 = 1641610)
1066567 x 6 = 6566017 (1920010 x 6 = 11520010)
10666567 x 6 = 65666017 (13444810 x 6 = 80668810)

Base 8

258 x 2 = 528 (2110 x 2 = 4210)
2758 x 2 = 5728 (18910 x 2 = 37810)
25258 x 2 = 52528 (136510 x 2 = 273010)
27758 x 2 = 57728 (153310 x 2 = 306610)
250258 x 2 = 520528 (1077310 x 2 = 2154610)
277758 x 2 = 577728 (1228510 x 2 = 2457010)
2500258 x 2 = 5200528 (8603710 x 2 = 17207410)
2525258 x 2 = 5252528 (8738110 x 2 = 17476210)
2752758 x 2 = 5725728 (9695710 x 2 = 19391410)
2777758 x 2 = 5777728 (9830110 x 2 = 19660210)
25000258 x 2 = 52000528 (68814910 x 2 = 137629810)
25275258 x 2 = 52572528 (70024510 x 2 = 140049010)
27502758 x 2 = 57205728 (77433310 x 2 = 154866610)
27777758 x 2 = 57777728 (78642910 x 2 = 157285810)
21568 x 3 = 65128 (113410 x 3 = 340210)
217568 x 3 = 657128 (919810 x 3 = 2759410)
2177568 x 3 = 6577128 (7371010 x 3 = 22113010)
21777568 x 3 = 65777128 (58980610 x 3 = 176941810)
10158 x 5 = 51018 (52510 x 5 = 262510)
111658 x 5 = 561118 (472510 x 5 = 2362510)
1025158 x 5 = 5152018 (3412510 x 5 = 17062510)
1126658 x 5 = 5662118 (3832510 x 5 = 19162510)
10160158 x 5 = 51061018 (26932510 x 5 = 134662510)
11276658 x 5 = 56672118 (30712510 x 5 = 153562510)
10678 x 7 = 76018 (56710 x 7 = 396910)
107678 x 7 = 767018 (459910 x 7 = 3219310)
1077678 x 7 = 7677018 (3685510 x 7 = 25798510)
10777678 x 7 = 76777018 (29490310 x 7 = 206432110)

Base 9

32569 x 2 = 65239 (240010 x 2 = 480010)
328569 x 2 = 658239 (2184010 x 2 = 4368010)
3288569 x 2 = 6588239 (19680010 x 2 = 39360010)
32888569 x 2 = 65888239 (177144010 x 2 = 354288010)
1879 x 4 = 7819 (16010 x 4 = 64010)
17179 x 4 = 71719 (131210 x 4 = 524810)
18879 x 4 = 78819 (145610 x 4 = 582410)
170179 x 4 = 710719 (1168010 x 4 = 4672010)
188879 x 4 = 788819 (1312010 x 4 = 5248010)
1700179 x 4 = 7100719 (10499210 x 4 = 41996810)
1717179 x 4 = 7171719 (10628810 x 4 = 42515210)
1871879 x 4 = 7817819 (11680010 x 4 = 46720010)
1888879 x 4 = 7888819 (11809610 x 4 = 47238410)
17000179 x 4 = 71000719 (94480010 x 4 = 377920010)
17187179 x 4 = 71781719 (95776010 x 4 = 383104010)
18701879 x 4 = 78107819 (104992010 x 4 = 419968010)
18888879 x 4 = 78888819 (106288010 x 4 = 425152010)
10789 x 8 = 87019 (80010 x 8 = 640010)
108789 x 8 = 878019 (728010 x 8 = 5824010)
1088789 x 8 = 8788019 (6560010 x 8 = 52480010)
10888789 x 8 = 87888019 (59048010 x 8 = 472384010)

Base 10

217810 x 4 = 871210
2197810 x 4 = 8791210
21997810 x 4 = 87991210
219997810 x 4 = 879991210
108910 x 9 = 980110
1098910 x 9 = 9890110
10998910 x 9 = 98990110
109998910 x 9 = 989990110

NOTE

1. The Penguin Dictionary of Curious and Interesting Numbers, David Wells, Penguin, London, 1987, entry for "196", pg. 143


Maths Index

Main Index