Showing posts with label factors. Show all posts
Showing posts with label factors. Show all posts

Tuesday, 13 October 2026

Beyond 23

The algorithm that I got Gemini to create and that I used in the post 23 Revisited was the result of the following prompt:

Write a program in SageMath that determines all the composite, positive integers in a given range that contain the digits 2 and 3 in ascending order from left to right (but not necessarily consecutively) and whose prime factors also all contain the digits 2 and 3 in ascending order but not necessarily consecutively. The default range can be from 1 to 40000. The output should a table showing number and factors followed by a comma-separated list of the qualifying numbers.

Instead of the prime 23, other prime numbers can be investigated. Composite numbers could be investigated too but this would lead to rather large numbers and so I'll restrict this investigation to prime numbers but I'll increase the range from 1 to one million.

Here are the results for 11 (permalink):

Number       | Prime Factors
------------------------------
110231       | 11, 911
111221       | 11, 10111
112321       | 11, 10211
117821       | 11, 10711
128711       | 11, 11701
129811       | 11, 11801
131153       | 11, 11923
131197       | 11, 11927
171121       | 211, 811
211321       | 11, 19211
231121       | 11, 21011
232111       | 11, 21101
261143       | 113, 2311
351119       | 311, 1129
451121       | 11, 41011
511621       | 11, 46511
781121       | 11, 71011
892111       | 11, 81101

Here are the results for 13 (permalink):

Number       | Prime Factors
------------------------------
13169         | 13, 1013
16913         | 13, 1301
22139         | 13, 131
113269       | 13, 8713
131729       | 13, 10133
131807       | 13, 10139
132703       | 131, 1013
134069       | 13, 10313
136669       | 13, 10513
137069       | 113, 1213
137969       | 13, 10613
138781       | 137, 1013
147013       | 113, 1301
161369       | 13, 12413
169013       | 13, 13001
171301       | 13, 13177
171379       | 13, 13183
172133       | 13, 13241
180713       | 13, 13901
190013       | 139, 1367
211303       | 131, 1613
313469       | 13, 24113
313729       | 13, 24133
313781       | 13, 24137
360139       | 13, 2131
407213       | 313, 1301
413473       | 313, 1321
421369       | 13, 32413
661369       | 313, 2113
797513       | 613, 1301
813397       | 13, 4813
813451       | 613, 1327

Here are the results for 17 (permalink):

Number       | Prime Factors
------------------------------
51731         | 17, 179
117589       | 17, 6917
173009       | 17, 10177
178313       | 17, 617
198917       | 17, 11701
217843       | 179, 1217
291703       | 17, 17159
295817       | 17, 17401
301733       | 17, 17749
308417       | 179, 1723
351713       | 17, 1217
368917       | 17, 21701
506617       | 17, 1753
517021       | 17, 1789
541753       | 317, 1709
717043       | 17, 42179

Here, and finally, are the results for 19 (permalink):

Number       | Prime Factors
------------------------------
19361         | 19, 1019
36119         | 19, 1901
119467       | 193, 619
121943       | 197, 619
193667       | 19, 10193
194629       | 191, 1019
196667       | 193, 1019
251929       | 191, 1319
361019       | 19, 19001
361969       | 19, 19051
366719       | 19, 19301
370519       | 19, 19501
371963       | 19, 19577
376219       | 19, 19801
381947       | 193, 1979
519329       | 191, 2719
601967       | 193, 3119
714419       | 19, 1979
719473       | 19, 1993
752419       | 19, 199
796519       | 419, 1901

I won't continue with primes larger than 23 because really what I want is an algorithm that will identify a sequence of digits that form a prime within a number and then check that the same digit sequence occurs with each of its prime factors. The number being checked is thus composite. Here is a permalink to the program that I've now included in my daily number analysis.

Tuesday, 25 August 2026

When Sequences Overlap

I've written in previous posts about what I've called the Factors Sequence (with and without multiplicity) and the Divisors Sequence:


What I noticed about the number (28268) associated with my diurnal age today is that for the Factors Sequence with multiplicity and the Divisors Sequence both terminate where they began. Here is the Factors Sequence: 28268, 7067, 14134, 42402, 169608, 28268. Figure 1 shows a plot of the points with a logarithmic vertical axis.


Figure 1

Here is Divisors Sequence: 28268, 339216, 13568640, 106005, 1696080, 21201, 169608, 5427456, 390776832, 2035296, 28268. Figure 2 shows a plot of the points with a logarithmic vertical axis:


Figure 2

Closer inspection of both sequences shows that they share a common number apart from 28268. The number is 169608 and Figure 3 shows both plots on the same graph.


Figure 3: permalink

In the range up 40000, there are 1779 numbers with these two properties:
  • the factors sequence with multiplicity and the divisors sequence terminate where they started
  • the two sequences share a common member different from the start and end values
Here are the numbers (permalink) from 28000 to 40000:

28001, 28012, 28019, 28036, 28056, 28124, 28132, 28148, 28163, 28204, 28244, 28248, 28252, 28268, 28292, 28307, 28324, 28348, 28364, 28372, 28388, 28396, 28444, 28468, 28492, 28499, 28532, 28536, 28564, 28588, 28612, 28628, 28643, 28676, 28684, 28724, 28732, 28776, 28793, 28796, 28804, 28868, 28892, 28901, 28924, 28949, 28961, 28964, 28968, 28979, 28996, 29021, 29033, 29044, 29064, 29084, 29092, 29108, 29116, 29123, 29156, 29164, 29201, 29212, 29243, 29252, 29256, 29276, 29308, 29339, 29356, 29372, 29428, 29444, 29452, 29453, 29468, 29483, 29492, 29516, 29548, 29564, 29588, 29612, 29636, 29684, 29692, 29708, 29756, 29764, 29784, 29788, 29812, 29832, 29852, 29873, 29884, 29928, 29932, 29972, 30004, 30052, 30072, 30076, 30124, 30172, 30203, 30264, 30269, 30284, 30323, 30347, 30388, 30389, 30404, 30408, 30436, 30449, 30452, 30467, 30476, 30504, 30508, 30524, 30532, 30539, 30548, 30552, 30604, 30644, 30652, 30689, 30716, 30773, 30788, 30803, 30836, 30844, 30884, 30916, 30956, 30988, 31004, 31052, 31076, 31084, 31124, 31132, 31139, 31148, 31196, 31204, 31228, 31244, 31252, 31253, 31259, 31276, 31324, 31348, 31396, 31436, 31444, 31469, 31484, 31512, 31547, 31564, 31588, 31612, 31636, 31649, 31652, 31721, 31756, 31793, 31828, 31844, 31868, 31876, 31916, 31924, 31964, 31988, 31992, 31996, 32003, 32009, 32012, 32084, 32088, 32092, 32108, 32132, 32136, 32141, 32188, 32204, 32228, 32232, 32252, 32284, 32308, 32332, 32376, 32381, 32424, 32476, 32507, 32516, 32524, 32548, 32561, 32564, 32568, 32572, 32573, 32596, 32603, 32612, 32633, 32636, 32692, 32712, 32756, 32788, 32789, 32804, 32812, 32828, 32843, 32852, 32908, 32933, 32955, 32987, 32996, 33004, 33028, 33044, 33053, 33068, 33096, 33107, 33116, 33196, 33236, 33284, 33288, 33308, 33332, 33347, 33356, 33364, 33384, 33388, 33404, 33428, 33432, 33436, 33461, 33484, 33521, 33528, 33532, 33569, 33596, 33604, 33628, 33644, 33652, 33668, 33672, 33713, 33749, 33764, 33773, 33809, 33812, 33836, 33864, 33884, 33892, 33916, 33932, 33941, 33956, 33964, 33988, 34008, 34012, 34028, 34036, 34076, 34124, 34196, 34204, 34228, 34244, 34253, 34268, 34316, 34348, 34372, 34412, 34444, 34468, 34484, 34532, 34556, 34584, 34604, 34612, 34628, 34636, 34667, 34732, 34844, 34868, 34913, 34949, 34968, 34972, 34996, 35036, 35068, 35069, 35081, 35092, 35108, 35164, 35188, 35204, 35236, 35252, 35256, 35339, 35363, 35372, 35404, 35428, 35448, 35492, 35516, 35524, 35564, 35573, 35596, 35612, 35636, 35668, 35684, 35708, 35756, 35788, 35812, 35908, 35924, 35932, 35933, 35956, 35963, 35993, 36024, 36068, 36076, 36083, 36092, 36124, 36148, 36168, 36188, 36212, 36284, 36292, 36299, 36308, 36312, 36316, 36332, 36353, 36356, 36388, 36404, 36408, 36428, 36452, 36467, 36476, 36484, 36501, 36524, 36572, 36596, 36629, 36668, 36676, 36683, 36696, 36716, 36761, 36772, 36788, 36821, 36844, 36868, 36888, 36892, 36916, 36923, 36929, 36932, 36984, 36988, 37012, 37013, 37036, 37049, 37052, 37084, 37148, 37156, 37181, 37196, 37204, 37228, 37252, 37253, 37316, 37388, 37412, 37464, 37516, 37532, 37547, 37556, 37628, 37708, 37796, 37804, 37848, 37853, 37876, 37924, 37948, 37972, 38036, 38068, 38092, 38108, 38116, 38136, 38184, 38189, 38201, 38212, 38228, 38252, 38276, 38284, 38308, 38333, 38356, 38372, 38396, 38428, 38444, 38453, 38468, 38472, 38501, 38548, 38564, 38588, 38603, 38636, 38668, 38669, 38684, 38692, 38732, 38747, 38764, 38804, 38812, 38828, 38852, 38861, 38867, 38873, 38908, 38924, 38933, 39028, 39044, 39052, 39089, 39092, 39107, 39144, 39172, 39188, 39192, 39196, 39233, 39236, 39308, 39323, 39336, 39364, 39388, 39412, 39419, 39432, 39452, 39476, 39521, 39524, 39569, 39572, 39576, 39596, 39624, 39652, 39668, 39748, 39772, 39779, 39812, 39827, 39836, 39844, 39864, 39908, 39916, 39932, 39953, 39956, 39964, 39988, 39989

Sunday, 12 July 2026

28224: An Interesting Number

28224 has 194 entries in the OEIS which is extraordinarily high for a five digit number. In this post I'll be discussing some of this number's most interesting properties but not all of them. There are just too many. It's prime factorisation is:$$28224=2^6 \times 3^2 \times 7^2$$FIRST INTERESTING PROPERTY

Numbers that are perfect squares are quite rare in the range up to 40000. There are only 200 of them and 28224, my diurnal age today, is one of them. It has the property that:$$28224=168^2$$The number of days between my experience of them is a little less than a year. There is a gap of exactly 365 days between \(183^2\) and \(182^2\) since:$$ \begin{align} 183^2-182^2 &= (183 + 182)(183-182) \\ &=365 \times 1 \\ &=365 \end{align}$$I'll be \(33124\) or \(182^2\) days when I'm over \(90\) years old so I may not get to experience the transition from this square to the next.

28224 is also a Loeschian number since it is equal to \(72^2+ 72 \times 120 + 120^2\).

28224 also has a product of digits (256) that is a perfect square since \(256=16^2\).

SECOND INTERESTING PROPERTY

Numbers that are the sum of two positive cubes are relatively rare in the range up to 40000. In fact, there are only 378 numbers in the range up to 40000 and 28224 is one of them because:$$28224=22^3 + 26^3$$These numbers form OEIS A004999.

THIRD INTERESTING NUMBER

Energetic numbers are numbers that can be broken into two or more substrings and expressed as a sum of (possibly different) positive powers of those substrings. They form OEIS  A055480. 28224 is one such number because:$$28224=28^3 + 2^{11} + 2^7 + 4^6$$I discuss this category of numbers in my blog post Energetic Numbers.

FOURTH INTERESTING NUMBER

Friedman numbers are positive integers which can be written in some non-trivial way using its own digits, together with the symbols + – × / ^ ( ) and concatenation. 28224 is one such number because:$$28224 = (2 + 82)^2 × 4$$It is said to be a "nice" Friedman number because the digits are in the same order as the number. These numbers are listed on my blog post Narcissistic, D-Powerfull and Friedman Numbers.

FIFTH INTERESTING NUMBER

28224 has the property that certain of its factors (not necessarily prime) can be arranged to form a palindrome. Specifically:$$2 \times 2 \times 2 \times 882 \times 2 \times 2 = 22288222$$I've written about these sorts of numbers in a post titled Why Is 313131 An Interesting Number?

SIXTH INTERESTING PROPERTY

28224 is a concatenation of powers of 2 since:$$28224= 2^1 \; || \; 2^3 \; || \; 2^1 \; || \; 2^1 \; || \; 2^2$$I've written about numbers that can be formed in this way in a blog post titled Nothing New Under The Sun. It is also a concatenation of multiples of 7 since:$$28224= (7 \times 4) \, || \, (7 \times 32)$$I posted about these sorts of concatenations in my blog post More Numbers as Concatenations.

SEVENTH INTERESTING PROPERTY

28224 is a member of OEIS A253824 where$$ \text{numbers } m = s \, || \, t \text{ such that } m = \sigma(s) \times \sigma(t)$$where || represents concatenation. In the case of 28224 we have:$$ \begin{align} 28224 &= 28 \, || \, 224 \\ &= \sigma(28) \times \sigma(224) \\ &= 56 \times 504 \\ &=28224 \end{align}$$28224 is only the third such number in the range up to 40000. The two earlier numbers are 540 and 2352.

EIGHTH INTERESTING PROPERTY

28224 has a digit sum of 18 and when this is added to the number the result is 28242 which has the same digits as 28224 but in a slightly different order. This property makes it a member of OEIS A246420.

 
 A246420

Numbers \(n\) such that \(n\)  + digit sum of \(n\) is a permutation of the decimal digits of \(n\) .


Friday, 12 June 2026

Forming Palindromes from Factors

 In a blog post titled Why Is 313131 An Interesting Number?, I remarked that:

$$ 313131=3 \times 7 \times 13 \times 31 \times 37$$If we rearrange the order of multiplication we get the following:$$ 313131=7 \times 3 \times 13 \times 31 \times 37$$Concatenating these digits we get the number \(73133137\) which is palindromic.

I went on to look at what other numbers in the range between 28000 and 29000 have this property and came up with the table shown below:


The numbers are thus relatively rare, there being only 27 in a range of 1000 numbers. This represents a density of 2.7%. The numbers are listed below:

28072, 28125, 28194, 28224, 28242, 28273, 28308, 28322, 28332, 28416, 28431, 28448, 28585, 28589, 28593, 28601, 28602, 28609, 28620, 28672, 28685, 28692, 28750, 28800, 28812, 28847, 28951

The factors under consideration here are all PRIME factors. What if we allow factors that are not necessarily prime. Take 28200 as an example:$$ \begin{align} 28200 &= 2 \times 5 \times 3 \times 2 \times 235 \times 2 \\ &\rightarrow 25322352 \end{align}$$The resultant number after concatenation of the factors is palindromic. Notice that the factor 235 is NOT prime.

It turns out that palindromes constructed in this way are relatively frequent. In the range between 28100 and 28300 (a range of only 200), the density is 15.4%. The numbers are:

28104, 28105, 28125, 28126, 28128, 28130, 28140, 28143, 28152, 28160, 28161, 28175, 28179, 28180, 28182, 28188, 28194, 28200, 28224, 28230, 28236, 28242, 28251, 28256, 28266, 28273, 28275, 28280, 28288, 28296, 28300

I've set up my multipurpose algorithm to identify such numbers when they pop up in my diurnal age analysis.

Wednesday, 6 May 2026

Pandigital Products

Yesterday I turned 28156 days old and this number has an interesting property:$$28156 = 4 \times 7039$$The factorisation shown is not the prime factorisation but, looking at both sides of the equation, it can be seen that each of the digits from 0 to 9 occurs exactly once. This makes the number a member of OEIS A370970:


A370970
: numbers \(k\) which have a factorization \(k = f_1 \times f_2 \times \ldots \times f_n \) where the digits of \({k, f_1, f_2, \ldots, f_n}\) together give \(0,1, \ldots ,9\) exactly once.

Here is the complete list of terms:

8596 = 2 x 14 x 307

8790 = 2 x 3 x 1465

9360 = 2 x 4 x 15 x 78

9380 = 2 x 5 x 14 x 67

9870 = 2 x 3 x 1645

10752 = 3 x 4 x 896

12780 = 4 x 5 x 639

14760 = 5 x 9 x 328

14820 = 5 x 39 x 76

15628 = 4 x 3907

15678 = 39 x 402

16038 = 27 x 594 = 54 x 297

16704 = 9 x 32 x 58

17082 = 3 x 5694

17820 = 36 x 495 = 45 x 396

17920 = 8 x 35 x 64

18720 = 4 x 5 x 936

19084 = 52 x 367

19240 = 8 x 37 x 65

20457 = 3 x 6819

20574 = 6 x 9 x 381

20754 = 3 x 6918

21658 = 7 x 3094

24056 = 8 x 31 x 97

24507 = 3 x 8169

25803 = 9 x 47 x 61

26180 = 4 x 7 x 935

26910 = 78 x 345

27504 = 3 x 9168

28156 = 4 x 7039

28651 = 7 x 4093

30296 = 7 x 8 x 541

30576 = 8 x 42 x 91

30752 = 4 x 8 x 961

31920 = 5 x 76 x 84

32760 = 8 x 45 x 91

32890 = 46 x 715

34902 = 6 x 5817

36508 = 4 x 9127

47320 = 8 x 65 x 91

58401 = 63 x 927

65128 = 7 x 9304 

65821 = 7 x 9403

These numbers are few and far between as can be seen and 28156 in particular recurs with permuted digits as 15628, 21658, 28651, 65128 and 65821.

Saturday, 21 March 2026

Concatenating Reversible Sphenic Numbers

My previous post Concatenating Emirpimes suggested the concatenation of reversible sphenic numbers as a logical sequel. A sphenic number that is still sphenic when its digits are reversed is sometimes called a \( \textbf{cinephs} \). Let's take 418 as an example of the type of number that we want to identify:$$ \begin{align} 418 &= 2 \times 11 \times 19 \\ 814 &= 2 \times 11 \times 37 \\ 418814 &= 2 \times 11 \times 19037 \end{align}$$There are, coincidentally, 418 such numbers in the range up to 40000. Here are the details (permalink):

=== Cineph Concatenation Statistics ===

Range evaluated: 1 to 40000

1. Sphenic numbers: 7720 (19.30% of the range)

2. Cinephs: 1890 (4.72% of the range)

3. Successful Cinephs: 418 (1.0450% of the range)

=== Comma-Separated List of Successful Cinephs ===

418, 682, 759, 814, 957, 1034, 1095, 1113, 1185, 1342, 1419, 1446, 1606, 1614, 1902, 1965, 2014, 2035, 2282, 2414, 2431, 2438, 2494, 2635, 2665, 2686, 3018, 3059, 3138, 3201, 3278, 3297, 3358, 3495, 3597, 3606, 3678, 3685, 3714, 3729, 3765, 3926, 4301, 4382, 4543, 4565, 4715, 4945, 5174, 5362, 5495, 5863, 5986, 6035, 6061, 6083, 6206, 6293, 6806, 7185, 7305, 7414, 7449, 7567, 7645, 7657, 7662, 7718, 8155, 8174, 8378, 8386, 8390, 8393, 8555, 8734, 8786, 8789, 8987, 9138, 9141, 9213, 9309, 9321, 9354, 9362, 9503, 9515, 9519, 9807, 9822, 9885, 9951, 9978, 10095, 10246, 10263, 10274, 10326, 10382, 10490, 10502, 10509, 10554, 10635, 10761, 10835, 10879, 10915, 11098, 11342, 11395, 11398, 11407, 11577, 11605, 11753, 11922, 11937, 11958, 11982, 12174, 12218, 12257, 12378, 12498, 12529, 12551, 12595, 12859, 12874, 12890, 12914, 13137, 13143, 13222, 13305, 13514, 13574, 13618, 13634, 13783, 13786, 13906, 14035, 14043, 14055, 14127, 14174, 14223, 14298, 14313, 14443, 14573, 14590, 14619, 14646, 14655, 14846, 14889, 14894, 14955, 15235, 15323, 15422, 15430, 15521, 15585, 15626, 15657, 15794, 15818, 15914, 15958, 15994, 16098, 16159, 16518, 16558, 16666, 16701, 16914, 16915, 16946, 17006, 17139, 17353, 17445, 17518, 17534, 17799, 17805, 17814, 17818, 17978, 18093, 18123, 18147, 18205, 18222, 18231, 18309, 18395, 18458, 18555, 18579, 18685, 18717, 18814, 18854, 19023, 19178, 19221, 19317, 19382, 19545, 19605, 19623, 19877, 19923, 19947, 19987, 20009, 20066, 20195, 20270, 20305, 20315, 20530, 20594, 20657, 20726, 20758, 20870, 20905, 20945, 20965, 20966, 22058, 22282, 22562, 22582, 22591, 22645, 22933, 22939, 22945, 22970, 24002, 24026, 24095, 24265, 24409, 24479, 24583, 24590, 24739, 24817, 24878, 24962, 24973, 26090, 26102, 26134, 26146, 26245, 26266, 26273, 26429, 26494, 26506, 26546, 26555, 26614, 26638, 26663, 26758, 26873, 26878, 26930, 26939, 26990, 28085, 28165, 28186, 28222, 28237, 28358, 28418, 28426, 28441, 28483, 28514, 28645, 28747, 28835, 28870, 28918, 30054, 30099, 30126, 30277, 30418, 30502, 30651, 30795, 30943, 31026, 31027, 31035, 31191, 31254, 31386, 31658, 31719, 31978, 32039, 32043, 32181, 32295, 32351, 32417, 32442, 32613, 32846, 32857, 32898, 32907, 32938, 33143, 33162, 33186, 33378, 33429, 33473, 33555, 33583, 33585, 33754, 33818, 33835, 33906, 33918, 33922, 34005, 34077, 34078, 34131, 34133, 34158, 34203, 34222, 34257, 34474, 34562, 34563, 34661, 34705, 34826, 35006, 35094, 35123, 35202, 35274, 35319, 35382, 35618, 35619, 35871, 35949, 35985, 36003, 36039, 36165, 36174, 36226, 36355, 36474, 36586, 36606, 36627, 36935, 36958, 37317, 37329, 37367, 37411, 37418, 37433, 37527, 37614, 37634, 37743, 37754, 37970, 38049, 38085, 38193, 38294, 38399, 38451, 38467, 38533, 38555, 38643, 39081, 39169, 39305, 39306, 39351, 39358, 39399, 39458, 39562, 39785, 39842, 39918, 39966

As we learned in my previous post: 
There is a fundamental rule in number theory: Every palindrome with an even number of digits is divisible by 11.

Thus all the above numbers have 11 as a prime factor. Let's take 39358 as another example: $$ \begin{align} 39358 &= 2 \times 11 \times 1789 \\ 85393 &= 7 \times 11 \times 1109 \\ 3935885393 &= 11 \times 397 \times 901279\end{align}$$Of course, if we were to try this technique on emirps (reversible primes), we would never end up with a prime because the resultant number would always be divisible by 11. For example, 37 and 73 combine to form$$ 3773 = 11 \times 343 =11 \times 7^3$$

Friday, 13 February 2026

Fibonacci From Prime Factors


Gemini's Infographic Summary of the Content in this Post

I noticed that the number (\( \textbf{28075} \)) associated with my diurnal age today has an interesting property relating to its prime factors:$$28075=5^2 \times 1123$$The number has distinct prime factors of \( \textbf{5}\) and \( \textbf{1123}\). If these two factors are written in reversed order and then concatenated, the number \( \textbf{11235}\) is formed with digits that form a Fibonacci sequence:$$1+1 \rightarrow 2 \text{ and } 2 + 3 \rightarrow 5$$This got me thinking about what other numbers have this property and so I set Gemini to work to find all such numbers in the range from 1 to 40000. It turns out that the following numbers qualify (permalink):

22, 26, 30, 44, 52, 60, 66, 70, 88, 90, 101, 104, 115, 120, 132, 140, 141, 150, 158, 167, 176, 180, 198, 203, 205, 208, 210, 240, 242, 253, 257, 264, 270, 280, 300, 301, 316, 330, 338, 347, 350, 352, 360, 396, 416, 420, 423, 427, 450, 480, 484, 490, 528, 540, 560, 575, 594, 600, 611, 617, 630, 632, 660, 676, 700, 704, 720, 726, 750, 771, 790, 792, 810, 832, 835, 840, 900, 960, 968, 980, 990, 1025, 1050, 1056, 1080, 1120, 1123, 1188, 1200, 1222, 1260, 1264, 1265, 1269, 1320, 1350, 1352, 1400, 1408, 1421, 1440, 1452, 1459, 1470, 1500, 1580, 1584, 1620, 1650, 1664, 1680, 1750, 1782, 1800, 1890, 1920, 1936, 1960, 1980, 2100, 2107, 2112, 2160, 2178, 2240, 2250, 2313, 2376, 2400, 2430, 2444, 2450, 2520, 2528, 2640, 2645, 2662, 2700, 2704, 2783, 2800, 2816, 2875, 2880, 2904, 2940, 2970, 2989, 3000, 3150, 3160, 3168, 3240, 3257, 3300, 3328, 3360, 3430, 3500, 3564, 3600, 3630, 3750, 3780, 3807, 3840, 3872, 3920, 3950, 3960, 4050, 4175, 4200, 4224, 4320, 4356, 4377, 4394, 4410, 4480, 4500, 4752, 4800, 4860, 4888, 4900, 4950, 5040, 5056, 5125, 5167, 5250, 5279, 5280, 5324, 5346, 5400, 5408, 5600, 5615, 5632, 5670, 5760, 5808, 5819, 5880, 5887, 5940, 6000, 6300, 6319, 6320, 6325, 6336, 6480, 6534, 6600, 6627, 6656, 6720, 6750, 6860, 6939, 7000, 7128, 7200, 7260, 7290, 7350, 7500, 7560, 7680, 7744, 7840, 7900, 7920, 7943, 7986, 8100, 8250, 8400, 8405, 8448, 8640, 8712, 8750, 8788, 8820, 8910, 8960, 9000, 9450, 9504, 9600, 9720, 9776, 9800, 9900, 9947, 10080, 10112, 10201, 10290, 10500, 10560, 10648, 10692, 10800, 10816, 10890, 11200, 11250, 11264, 11340, 11421, 11520, 11616, 11760, 11880, 12000, 12150, 12250, 12482, 12600, 12640, 12672, 12943, 12960, 13068, 13131, 13200, 13225, 13230, 13312, 13440, 13500, 13720, 13915, 14000, 14256, 14375, 14400, 14520, 14580, 14700, 14749, 14850, 15000, 15120, 15360, 15488, 15680, 15750, 15800, 15840, 15886, 15972, 16038, 16200, 16500, 16800, 16896, 17010, 17150, 17280, 17424, 17500, 17576, 17640, 17820, 17920, 18000, 18150, 18750, 18900, 19008, 19200, 19440, 19552, 19600, 19602, 19750, 19800, 19881, 20160, 20224, 20250, 20580, 20817, 20875, 20923, 21000, 21120, 21296, 21347, 21384, 21600, 21632, 21780, 21870, 22050, 22400, 22500, 22528, 22680, 23040, 23232, 23520, 23760, 23958, 24000, 24010, 24300, 24500, 24750, 24964, 25200, 25280, 25344, 25625, 25920, 26047, 26136, 26250, 26400, 26460, 26624, 26730, 26880, 27000, 27440, 27889, 28000, 28075, 28350, 28512, 28717, 28800, 29040, 29095, 29160, 29282, 29400, 29700, 30000, 30240, 30613, 30720, 30870, 30976, 31360, 31500, 31600, 31625, 31680, 31772, 31944, 32076, 32400, 32670, 33000, 33600, 33750, 33792, 34020, 34263, 34300, 34560, 34848, 35000, 35152, 35280, 35640, 35840, 36000, 36300, 36450, 36750, 37500, 37800, 38016, 38400, 38880, 39104, 39200, 39204, 39393, 39500, 39600, 39690, 39930

Of course looking at these numbers it's not immediately apparent what the Fibonacci digit sequence is but the Gemini program creates a table to show this. I'll restrict the range to between 28000 and 29000. The result is shown in Figure 1:


Figure 1: permalink

The fact that we are only considering \( \textbf{distinct} \) prime factors helps the program run quickly and there are no problems using it with SageMathCell. However if we allow multiplicity of factors, the number of permutations increases dramatically and SageMathCell quickly times out even if we restrict the range to between 28000 and 29000. So I think working only with distinct prime factors is the way to go.

Sunday, 8 February 2026

The Revision Revisited

In my post titled A Revision, I outlined an alternative algorithm for building a sequence based on the factors of numbers considered with multiplicity. This is the algorithm:

Suppose we take any positive integer \(n \gt 1\) and apply the following rules to it:
  • if a \(4k+1\) prime, double it and add 1: \(n \rightarrow 2n+1\)
  • if a \(4k+3\) prime, subtract 1 and divide by 2: \(n \rightarrow (n-1)/2\)
  • if composite, determine its number of factors \(f\) counted \( \textbf{with multiplicity}\)
    • if \( n \pmod f \equiv 0\) then \(n \rightarrow \dfrac{n}{f} \)
    • if \( n \pmod f \not\equiv 0 \) then \(n \rightarrow n \times f\)
Keep repeating this process until a loop is reached or call a stop after a fixed number of iterations. 

What I'm interested in looking at in this post are the record lengths of sequences generated over a range of numbers, noting as well the highest and lowest values that are reached by sequence members. Figure 1 shows the results in the range from one to one million (permalink):


Figure 1

Let's now consider the algorithm where multiplicity is ignored. This algorithm in as follows:

Suppose we take any positive integer \(n \gt 1\) and apply the following rules to it:
  • if a \(4k+1\) prime, double it and add 1: \(n \rightarrow 2n+1\)
  • if a \(4k+3\) prime, subtract 1 and divide by 2: \(n \rightarrow (n-1)/2\)
  • if composite, determine its number of factors \(f\) counted \( \textbf{without multiplicity}\)
    • if \( n \pmod f \equiv 0\) then \(n \rightarrow \dfrac{n}{f} \)
    • if \( n \pmod f \not\equiv 0 \) then \(n \rightarrow n \times f\)
Keep repeating this process until a loop is reached or call a stop after a fixed number of iterations. 

Figure 2 shows the record lengths, highs and lows for the range from one to one million (permalink).


Figure 2

It can be noted that the record lengths of sequences are shorter when multiplicity is ignored and more end in 1 rather than a loop.

Saturday, 7 February 2026

A Revision

In my previous post, I made a modification to the following algorithm:

Suppose we take any positive integer \(n \gt 1\) 

  • if prime, double it and add 1: \(n \rightarrow 2n+1\)
  • if composite, determine its number of divisors \(d\)
    • if \( n \pmod d \equiv 0\) then \(n \rightarrow \dfrac{n}{d} \)
    • if \( n \pmod d \not\equiv 0 \) then \(n \rightarrow n \times d\)

Keep repeating this process until a loop is reached or call a stop after a fixed number of iterations. 

The modification I made prevented the numbers generated from becoming too large too quickly. Instead of doubling a prime and adding 1, I decided to do this only if the number was a \(4k+1\) prime. If it was a \(4k+3\), I subtracted 1 and divided by 2. The new algorithm looks like this:

  • if a \(4k+1\) prime, double it and add 1: \(n \rightarrow 2n+1\)
  • if a \(4k+3\) prime, subtract 1 and divide by 2: \(n \rightarrow (n-1)/2\)
  • if composite, determine its number of divisors \(d\)
    • if \( n \pmod d \equiv 0\) then \(n \rightarrow \dfrac{n}{d} \)
    • if \( n \pmod d \not\equiv 0 \) then \(n \rightarrow n \times d\) 
Here is an example using 28069 (permalink):

--- Loop detected at value 149708 ---
Divisors to Sequence:
28069, 56139, 224556, 18713, 37427, 149708, 1796496, 71859840, 561405, 8982480, 112281, 898248, 28743936, 2069563392, 10778976, 149708
------------------------------
Sequence Length: 16
Highest Value:   2069563392

This method of dealing with primes is also better suited to the sequences I mentioned earlier in my two posts: 
Here are the two new algorithms. 

Suppose we take any positive integer \(n \gt 1\) and apply the following rules to it:
  • if a \(4k+1\) prime, double it and add 1: \(n \rightarrow 2n+1\)
  • if a \(4k+3\) prime, subtract 1 and divide by 2: \(n \rightarrow (n-1)/2\)
  • if composite, determine its number of factors \(f\) counted \( \textbf{with multiplicity}\)
    • if \( n \pmod f \equiv 0\) then \(n \rightarrow \dfrac{n}{f} \)
    • if \( n \pmod f \not\equiv 0 \) then \(n \rightarrow n \times f\)
Keep repeating this process until a loop is reached or call a stop after a fixed number of iterations. 

Here is an example using 28069 (permalink):

--- Loop detected at value 37427 ---
Number of factors to sequence with multiplicity:
28069, 56139, 112278, 37426, 18713, 37427, 74854, 224562, 898248, 149708, 37427
--------------------
Sequence Length: 11 
Highest Value:   898248 

Suppose we take any positive integer \(n \gt 1\) and apply the following rules to it:
  • if a \(4k+1\) prime, double it and add 1: \(n \rightarrow 2n+1\)
  • if a \(4k+3\) prime, subtract 1 and divide by 2: \(n \rightarrow (n-1)/2\)
  • if composite, determine its number of factors \(f\) counted \( \textbf{without multiplicity}\)
    • if \( n \pmod f \equiv 0\) then \(n \rightarrow \dfrac{n}{f} \)
    • if \( n \pmod f \not\equiv 0 \) then \(n \rightarrow n \times f\)
Keep repeating this process until a loop is reached or call a stop after a fixed number of iterations. 

Here is an example using 28069 (permalink):

--- Loop detected at value 224562 ---
28069, 56139, 112278, 37426, 18713, 37427, 74854, 224562, 898248, 224562
--------------------
Sequence Length: 10
Highest Value:   898248