Showing posts with label Lychrel Numbers. Show all posts
Showing posts with label Lychrel Numbers. Show all posts

Sunday, 6 June 2021

26362: Another Special Palindrome

The day that I turned 26262 days old I dedicated a post to the number and titled it 26262: A Special Palindrome. That was on February 21st 2021. Today I'm enjoying the next successive palindromic day, having turned 26362 days old. 

Now this is a somewhat unusual palindrome in that it is not a member of OEIS A067030. 


A067030



Numbers \(n\) that are of the form \(k\) + reverse(\(k\)) for at least one \(k\).



Let's be clear firstly that such numbers are not common. The 1000th such number is 38772 which translates to a percentage density of less than 2.6%. The first such numbers are:
0, 2, 4, 6, 8, 10, 11, 12, 14, 16, 18, 22, 33, 44, 55, 66, 77, 88, 99, 101, 110, 121, 132, 141, 143, 154, 161, 165, 176, 181, 187, 198, 201, 202, 221, 222, 241, 242, 261, 262, 281, 282, 302, 303, 322, 323, 342, 343, 362, 363, 382, 383, 403, 404, 423, 424, 443 
Of these first 56 members of the sequence, 29 (more than 50%) are palindromic. This is not surprising because most numbers, under the repeated Reverse and Add operation, lead to a palindrome. 196 is the first number that apparently does not. Let's look at the palindromes not belonging to this sequence: 

131, 151, 171, 191, 212, 232, 252, 272, 292, 313, 333, 353, 373, 393, 434

All of them lead to palindromes under Reverse and Add, as shown below:

131 requires 1 steps to reach the palindrome 262
151 requires 2 steps to reach the palindrome 505
171 requires 2 steps to reach the palindrome 585
191 requires 4 steps to reach the palindrome 2552
212 requires 1 steps to reach the palindrome 424
232 requires 1 steps to reach the palindrome 464
252 requires 2 steps to reach the palindrome 909
272 requires 2 steps to reach the palindrome 989
292 requires 8 steps to reach the palindrome 233332
313 requires 1 steps to reach the palindrome 626
333 requires 1 steps to reach the palindrome 666
353 requires 3 steps to reach the palindrome 4444
373 requires 4 steps to reach the palindrome 9559
393 requires 4 steps to reach the palindrome 9339
434 requires 1 steps to reach the palindrome 868

26362 as it turns out is a member of OEIS A070001:


 A070001

Palindromes whose 'Reverse and Add' trajectory (presumably) does not lead to another palindrome.

 The initial members of this sequence are:

4994, 8778, 9999, 11811, 19591, 22822, 23532, 23632, 23932, 24542, 24742, 24842, 24942, 26362, 27372, 29792, 29892, 33933, 34543, 34743, 34943, 39493, 44744, 46064, 46164, 46364, 46564, 46964, 47274, 47574, 48284, 48584, 48684, 48884

These palindromes are not regarded as potential Lychrel numbers because they are already palindromes and some of them are the result or end point of \(k\) + reverse(\(k)\) iterations. However, some are not and these, I think, deserve special consideration:

19591, 23532, 23932, 24542, 24742, 24942, 26362, 27372, 29792, 33933, 34543, 34743, 34943, 39493, 44744, 46164, 46364, 46564, 46964, 47574, 48584

So 26362 is only the 7th palindrome to have the simultaneous property that:

  • it cannot be derived from \(k\) + reverse(\(k\)) for one or more values of \(k\)
  • its Reverse and Add trajectory (presumably) does not lead to another palindrome
There already two sevens associated with the number because \(7^2\) is a factor, so we have a lucky triple 7.


This is not the first time that I've written about palindromic numbers. Apart from my 26262: A Special Palindrome post, I've written about:
In researching this post, I came across a category of primes known as Palindromic Wing Primes or PMPs defined as "numbers that are primes, palindromic in base 10, and consisting of one central digit surrounded by two wings having an equal amount of identical digits and different from the central one". Examples are:

101
99999199999
333333313333333
7777777777772777777777777
11111111111111111111111111111111411111111111111111111111111111111

Some of these primes are regarded as potential Lychrel candidates and are listed in OEIS A320516 (with the rule that palindromes are ineligible being relaxed):


 A320516

Palindromic wing primes that are also Lychrel candidates.        
    

Initial members are:
7774777, 777767777, 77777677777, 99999199999, 1111118111111, 7777774777777, 111111181111111, 333333373333333, 77777777677777777, 99999999299999999, 9999999992999999999, 33333333333733333333333, 77777777777677777777777, 333333333333373333333333333

More information about PWPs can be found here. Palindromes and any numbers can be tested for Lychrel candidature using SageMathCell. A permalink is attached to the screenshoot in Figure 1.

Figure 1: permalink 

Thursday, 15 March 2018

The Collatz Conjecture Revisited

Some time ago I posted about the Collatz Conjecture. Today's and yesterday's numbers (25183 and 25182 respectively) are connected to this conjecture. In general, these numbers arise because I'm tracking the number of days that I've been alive, numbering the day I was born (April 3rd 1949) as day zero and counting forward from there.

Both numbers appear in the Online Encyclopaedia of Integer Sequences (OEIS) A224303, whose members comprise numbers n for which number of iterations to reach the largest equals number of iterations to reach 1 from the largest in Collatz (3x+1) trajectory of n.

It's easy enough to set up a spreadsheet that calculates the number of steps to reach 1 and also the number of steps to reach the largest number in the trajectory. This is what I've done in Google Sheets and I've included a screenshot below for 25183.


As can be seen, 116 steps are required to get to the largest number (6,810,136) in the trajectory and then the same number of steps to reach 1, making for 232 steps in all. The steps for the previous number 25182 are the same. Here is a graph of the trajectory:


Looking at the sequence of such numbers, it's apparent that they tend to cluster and often appear in groups of two or more. Here is the list as it is shown in OEIS A224303 (with clusters shown in different colours):

1, 6, 120, 334, 335, 804, 1249, 2008, 2010, 2012, 2013, 6556, 6557, 6558, 6801, 6802, 6803, 7496, 7498, 7500, 7501, 7505, 10219, 22633, 25182, 25183, 27074, 27075, 27864, 27866, 27868, 31838, 31839, 32078, 36630, 36633, 36690, 36691, 36914, 39126, 39344

The second member of the sequence, 6, is given as an example: 6 is in the list because the Collatz trajectory of 6 is {6, 3, 10, 5, 16, 8, 4, 2, 1} and four steps are required to reach the largest number number (16) and four steps are required to reach 1 from 16:

6 --> 3 --> 10 --> 5 --> 16 and then 16 --> 8 --> 4 ---> 2 --> 1

Of course, there's a site on the Internet that will calculate the number of steps and graph the result. It also contains other interesting information relating to the Collatz conjecture. My spreadsheet will graph the trajectory but one has to manually alter the upper bound to get the best looking graph. I haven't figured out a way to adjust it automatically but I'll keep working on it.

Remember that the rule is to divide by 2 if the number is even and multiply by 3 and add 1 if the number is odd (hence the "3x+1 problem" as an alternative moniker). However, the site mentioned also allows one to customise the algorithm, so that for example instead of multiplying by 3, one can multiply by 2.


Interestingly, the trajectory still reaches 1 but it takes 669 steps and it's graph is quite different to that followed using the standard algorithm. Using larger multipliers like 4 doesn't seem to lead to convergence. For example after 10000 iterations using 4 as the multiplier, one gets 6,922,158,704,601,770. I'm not sure what happens with more iterations. The site also has a page for testing Lychrel numbers. I've looked at these sorts of numbers before but hadn't realised that they were called Lychrel numbers. I'd been referring to the algorithm to find them, namely reverse and add. See this post and this post to view.

See also: https://voodooguru23.blogspot.com/2018/03/the-px1-map.html

Read about Terence Tao's latest discovery: https://t.co/h8cMC9QKes

Wednesday, 14 September 2016

Lycrel Numbers

I've referred to the Lychrel numbers before in a couple of earlier posts but they always keep cropping up and a dedicated post will serve to remind of what they are, specifically a set of numbers that do not form a palindrome through the process of reversing and adding their digits. Of course, in base 10 it hasn't been proved that such numbers do not form palindromes somewhere down the iterative track but the first Lychrel number, 196, has been tested to a billion digits and no palindrome has been found. There is a site dedicated to these numbers: http://www.p196.org although it hasn't been updated in many years.

Wikipedia says that "about 80% of all numbers under 10,000 resolve into a palindrome in four or fewer steps. About 90% resolve in seven steps or fewer". The article goes to note that "89 takes an unusually large 24 iterations (the most of any number under 10,000 that is known to resolve into a palindrome) to reach the palindrome 8,813,200,023,188" and "10,911 reaches the palindrome 4668731596684224866951378664 (28 digits) after 55 steps". These statistics are relevant because the number of the day when I'm composing this post - 24636 - is a member of OEIS A065320: 53 'Reverse and Add' steps are needed to reach a palindrome. 

The first numbers in this sequence are:
10677, 11667, 12657, 13647, 14637, 15627, 16617, 17607, 20676, 21666, 22656, 23646, 24636, 25626, 26616, 27606, 30675, 31665, 32655, 33645, 34635, 35625, 36615, 37605, 40674, 41664, 42654, 43644, 44634, 45624, 46614, 47604, 50673
The various milestones when a number sets a new record for the number of 'Reverse and Add' steps needed to reach a palindrome are recorded in OEIS A065198. The first few such numbers are 0, 10, 19, 59, 69, 79, 89, 10548, 10677, 10833, 10911, 147996, 150296.

More information can be found on this site: https://www.dcode.fr/lychrel-number. A number is delayed when there a multiple steps before becoming a palindrome. The most delayed known is 1186060307891929990 with 261 iterations. 

There are potential Lychrel primes and the first three of these are 691, 887 and 1997. These primes form OEIS A135316:


 A135316

Primes
 in A023108(n); or Lychrel primes.                                


Here is a list of the initial members:
691, 887, 1997, 3583, 3673, 3853, 3943, 4079, 4259, 4349, 4799, 4889, 5581, 5851, 6257, 6977, 8089, 8179, 8269, 8539, 8629, 8719, 10663, 10883, 11777, 11833, 11867, 11923, 11953, 11959, 12097, 12763, 12823, 13397, 13523, 13553, 13597, 13633
on June 6th 2021

Wednesday, 22 June 2016

Remembering Reverse and Add, Palindromes and Trajectories

In an earlier post I commented on the reverse and add operation on numbers that usually leads to a palindrome e.g. 13 --> 31+13 --> 44, 26 --> 62+26 --> 88, 102 --> 201+102 --> 303 etc. However, some numbers (as far as can be determined) do not lead to palindromes under this operation. The first such number is 196. Here is a list of some such numbers taken from the OEIS A063048 entry:
196, 879, 1997, 7059, 10553, 10563, 10577, 10583, 10585, 10638, 10663, 10668, 10697, 10715, 10728, 10735, 10746, 10748, 10783, 10785, 10787, 10788, 10877, 10883, 10963, 10965, 10969, 10977, 10983, 10985, 12797, 12898, 13097, 13197, 13694
I've highlighted 10563 because my number for the day of this entry (24522) is connected to this number because it lies on its trajectory under the reverse and add operation. The list of such numbers defines OEIS A063064 (integers n > 10563 such that the 'Reverse and Add!' trajectory of n joins the trajectory of 10563) and begins thus:
11553, 12543, 13533, 14097, 14523, 15087, 15513, 16077, 16503, 17067, 18057, 18597, 19047, 19587, 20562, 21552, 22542, 24096, 24522, 25086, 25512, 26076, 26502, 27066, 28056, 28596, 29046, 29586, 30561, 31551, 32541, 33531, 34095 
Hence the title of this post. I was reminded about the reverse and add operation and how it mostly results in palindromes except for certain special "seed" numbers (such as 10563) that create seemingly endless "trajectories". It turns out that 24522 lies on the trajectory of 10563.

Below is an excerpt from the WolframMathWorld about what it terms the 196-Algorithm:
Take any positive integer of two digits or more, reverse the digits, and add to the original number. This is the operation of the reverse-then-add sequence. Now repeat the procedure with the sum so obtained until a palindromic number is obtained. This procedure quickly produces palindromic numbers for most integers. For example, starting with the number 5280 produces the sequence 5280, 6105, 11121, 23232. The end results of applying the algorithm to 1, 2, 3,  4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, ... are 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 11, 33, 44, 55, 66, 77, 88, 99, 121, ... (OEIS A033865). The value for 89 is especially large, being 8813200023188. The first few numbers not known to produce palindromes, sometimes known as Lychrel numbers (Van Landingham), are 196, 295, 394, 493, 592, 689, 691, 788, 790, 879, 887, ... (OEIS A023108).