cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-2 of 2 results.

A329624 Number of iterations of A329623 for starting value n before a repeated value appears, or -1 if this never happens.

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10
Offset: 1

Views

Author

Scott R. Shannon, Nov 19 2019

Keywords

Comments

This sequence gives the number of iterations of A329623 for start value n before a repeated value first appears. Unlike the "ghost iteration" of A329200 the only fixed points are the single digits 0 to 9. See A328865 for the first repeating value.
Due to A329623(n) being significantly larger than n for some values of n, the iterative sequence can grow to infinity for some n. The first value to do so is n = 1373. This appears due to the occurrence of the digit string '62637' at the end of the term of the third iteration. These five digits reappear every second iteration at the end of the term, but with more and more digits preceding it. A329917 lists other divergent n values.
The smallest value, for n >= 10, which acts as an end point before repeating is 9, which is the final value for many starting values.
The digit string '8091' forms the basis of a very long convergent series for some values of n. The digit string consisting of an arbitrary number of copies of '80' followed by '91' will eventually converge to 8091, then 891, then 91, which finally converges in ten more iterations. We can thus form a number of arbitrary length using this rule which is guaranteed to converge. This sequence appears naturally with the starting value n = 139100 which converges to 9 after 136 iterations after reaching a term with 72 digits after 20 iterations. See the linked file below.
From M. F. Hasler, Dec 03 2019: (Start)
It seems the a(n) = -1 are conjectural, i.e., we have no proof that the terms for which the trajectory seems to "explode" do not eventually end up in a cycle. For example, the 8th iterate of 1373 is 5218725017016262626273. If the 2nd digit is changed from 2 to 0, then the further iterates appear to explode up to a length of 157 bits, but finally end up in a 2-cycle of 41-digit numbers (26...26273, 62...62637).
The "repeating values" are members of cycles, listed in A328142. Only fixed points 1, ..., 9 and 4*(10^k-1)/9 + 11, k >=3, and 6 infinite families of 2-cycles are known.
(End)
The first escape value is a(1373) = -1 (without proof). - Georg Fischer, Jul 16 2020

Examples

			a(1) = 1 as A329623(1) = 1, so a repeating value occurs after 1 iteration.
a(10) = 2 as A329623(10) = 9 and A329623(9) = 9, so a repeating value occurs after 2 iterations.
a(128) = 3, as A329623(128) = 182, A329623(182) = 728, A329623(728) = 182, so a repeating value occurs after 3 iterations.
		

Crossrefs

Sequences A324160, A226233, A179051, A140438, A132272 are unrelated; they begin with the same numbers as this sequence but differ after a(110) = 10, which ends the pattern of incrementing numbers, 2 through 11, repeated ten times.

Programs

  • PARI
    A329624(n,L=n^10,U=[n])=-!for(i=1,oo,setsearch(U,n=A329623(n))&&return(i); nM. F. Hasler, Dec 02 2019

A226293 Class of sequences of (p-1)-tuples of reverse order of natural numbers for p = 7.

Original entry on oeis.org

6, 5, 4, 3, 2, 1, 13, 12, 11, 10, 9, 8, 20, 19, 18, 17, 16, 15, 27, 26, 25, 24, 23, 22, 34, 33, 32, 31, 30, 29, 41, 40, 39, 38, 37, 36, 48, 47, 46, 45, 44, 43, 55, 54, 53, 52, 51, 50, 62, 61, 60, 59, 58, 57, 69, 68, 67, 66, 65, 64, 76, 75, 74, 73, 72, 71, 83
Offset: 1

Views

Author

Sam Vaseghi, Jun 02 2013

Keywords

Comments

Given a prime p, the class of sequences a(n,p) can be constructed from linear combination of the two sequences b(n,p) (A010885) and c(n,p) (A226233), according to a(n,p) = c(n,p)*p - b(n,p) (see Formula below) that ensures uniqueness of the form q = a(n,p)*p^m according to the decomposition theorem Vaseghi 2013 (see link and reference below), for p prime, q a positive integer and m a positive integer or zero. The above example is for p=7. The class is crucial and will be applied to define other number theoretic sequences, that will be submitted to OEIS as well a posterior.

Examples

			for p=2: 1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,...
for p=3: 2,1,5,4,8,7,11,10,14,13,17,16,20,19,23,22,26,25,29,28,...
for p=5: 4,3,2,1,9,8,7,6,14,13,12,11,19,18,17,16,24,23,22,21,...
for p=7: 6,5,4,3,2,1,13,12,11,10,9,8,20,19,18,17,16,15,27,26,...
		

Crossrefs

Programs

  • Mathematica
    p = 7; k = p - 1; c = (k + n - 1 - Mod[n - 1, k])/k; b = 1 + Mod[n - 1, k]; Table[c*p - b, {n, 68}]

Formula

a(n,p) = c(n,p)*p - b(n,p), where b(n,p) = (1+[(n-1)mod(p-1)]) (see A010885) and c(n,p) = ((p-1)+n-(1+[(n-1)mod(p-1)]))/(p-1) (see A226233), with p = 7.
Showing 1-2 of 2 results.