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.

A039654 a(n) = prime reached by iterating f(x) = sigma(x)-1 starting at n, or -1 if no prime is ever reached.

Original entry on oeis.org

2, 3, 11, 5, 11, 7, 23, 71, 17, 11, 71, 13, 23, 23, 71, 17, 59, 19, 41, 31, 47, 23, 59, 71, 41, 71, 71, 29, 71, 31, 167, 47, 53, 47, 233, 37, 59, 71, 89, 41, 167, 43, 83, 167, 71, 47, 167, 167, 167, 71, 97, 53, 167, 71, 167, 79, 89, 59, 167, 61, 167, 103, 311, 83, 167, 67
Offset: 2

Views

Author

Keywords

Comments

It appears nearly certain that a prime is always reached for n>1.
Since sigma(n) > n for n > 1, and sigma(n) = n + 1 only for n prime, the iteration either reaches a prime and loops there, or grows indefinitely. - Franklin T. Adams-Watters, May 10 2010
Guy (2004) attributes this conjecture to Erdos. See Erdos et al. (1990). - N. J. A. Sloane, Aug 30 2017

References

  • Richard K. Guy, Unsolved Problems in Number Theory, 3rd Edition, Springer, 2004. See Section B41, p. 149.

Crossrefs

Cf. A039655 (the number of steps needed), A039649, A039650, A039651, A039652, A039653, A039656, A291301, A291302, A291776, A291777.
For records see A292112, A292113.
Cf. A177343: number of times the n-th prime occurs in this sequence.
Cf. A292874: least k such that a(k) = prime(n).

Programs

Extensions

Contingency for no prime reached added by Franklin T. Adams-Watters, May 10 2010
Changed escape value from 0 to -1 to be consistent with several related sequences. - N. J. A. Sloane, Aug 31 2017

A292876 Irregular table whose n-th row lists all k such that A039654(k) = prime(n).

Original entry on oeis.org

2, 3, 5, 7, 4, 6, 11, 13, 10, 17, 19, 8, 14, 15, 23, 29, 21, 31, 37, 20, 26, 41, 43, 22, 33, 35, 47, 34, 53, 18, 24, 38, 59, 61, 67, 9, 12, 16, 25, 27, 28, 30, 39, 46, 51, 55, 71, 73, 57, 79, 44, 65, 83, 40, 58, 89
Offset: 1

Views

Author

M. F. Hasler, Sep 25 2017

Keywords

Comments

This can also be considered as a list of all orbits of A039653, ordered by their maximal element p = A039654(k) for any k of this orbit.
Indeed, A039653(x) >= x with equality iff x is prime, and all orbits of A039653 are conjectured to end in such a fixed point prime p = A039654(k) for any k in this orbit.
Row lengths are given by A177343.
This sequence is also a permutation of all integers > 1, where each prime p(k) is immediately preceded by A177343(k)-1 composite numbers less than p(k). It follows that each composite is preceded either by a smaller composite or by a larger prime, and followed by a larger composite or prime. Thus, the primes appear in their natural order, but the composites do not.
The first element of each row (i.e., the first column of this table) is given by A292874.
We see (cf. a-file) that powers of 2 are often the first element (or at least part) of relatively long orbits: A177343(A000720(A039654(2^k))) = (1, 3, 4, 12, 25, 5, 10, 35, 61, 143, 143, 220, 365, ...)

Examples

			The table starts:
    n  p(n)  { k | A039654(k) = p(n) }
    1    2   { 2 }
    2    3   { 3 }
    3    5   { 5 }
    4    7   { 7 }
    5   11   { 4, 6, 11 }
    6   13   { 13 }
    7   17   { 10, 17 }
    8   19   { 19 }
    9   23   { 8, 14, 15, 23 }
		

Crossrefs

Programs

  • PARI
    A292876(n,p=prime(n))=select(k->A039654(k)==p,[2..p]) \\ Not optimized nor efficient; mainly for illustrational purpose. - M. F. Hasler, Sep 25 2017
Showing 1-2 of 2 results.