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-4 of 4 results.

A362958 a(n) is the number of primes in a Collatz orbit started at A078373(n).

Original entry on oeis.org

1, 3, 6, 7, 25, 26, 28, 29, 30, 32, 36, 37, 43, 44, 48, 50, 51, 52, 53, 55, 59, 61, 62, 67, 70, 73, 74, 75, 77, 78, 79, 80, 81, 82, 84, 85, 86, 87, 90, 92
Offset: 1

Views

Author

Hugo Pfoertner, May 19 2023

Keywords

Crossrefs

Formula

a(n) = A078350(A078373(n)).

A177000 The Collatz iteration of these primes produces only even numbers, primes and 1.

Original entry on oeis.org

2, 3, 5, 7, 11, 13, 17, 19, 29, 37, 53, 59, 67, 89, 101, 131, 149, 157, 179, 181, 197, 241, 269, 277, 349, 397, 739, 853, 1109, 1237, 1429, 1621, 1861, 1877, 2161, 2389, 2531, 2957, 3413, 3797, 4549, 5717, 7621, 10069, 13397, 17749, 20021, 31541, 40277
Offset: 1

Views

Author

T. D. Noe, Apr 30 2010

Keywords

Comments

The Collatz iteration of primes of the form (10*4^k-1)/3 produces only one additional prime: 5. The Collatz iteration of primes of the form (13*4^k-1)/3 produces only two additional primes: 5 and 13. This sequence is probably infinite.
In a sense, these are the simplest Collatz iterations starting with a prime number. Except for the increases (3x+1) when an odd prime occurs, the sequence produced by starting with a(n) is decreasing. All the primes that occur in such a Collatz iteration are in this sequence. - T. D. Noe, Oct 05 2011

Examples

			The Collatz iteration of 7 produces 7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, and 1, which are either even, prime, or 1.
		

Crossrefs

Programs

A359131 Number of odd primes in the Collatz trajectory of A177000(n).

Original entry on oeis.org

0, 2, 1, 5, 4, 2, 3, 6, 5, 6, 2, 10, 8, 9, 7, 8, 6, 11, 9, 4, 7, 5, 8, 3, 9, 7, 4, 2, 3, 6, 9, 7, 10, 5, 8, 6, 11, 4, 2, 10, 3, 9, 10, 11, 12, 3, 6, 5, 11, 4, 10, 5, 3, 6, 7, 9, 7, 2, 7, 5, 8, 6, 4, 7, 5, 8, 3, 6, 9, 10, 5, 8, 3, 7, 8, 8, 13, 11, 11, 9, 12, 2
Offset: 1

Views

Author

N. J. A. Sloane, Dec 29 2022, following a suggestion from Rudolfo Nieves

Keywords

Comments

Equivalently, a(n) = A055509(A177000(n)).

Crossrefs

Extensions

a(38) and beyond from Michael S. Branicky, Dec 30 2022

A375093 Numbers for which the number of squares in their Collatz trajectory sets a new record.

Original entry on oeis.org

1, 3, 9, 27, 133, 315, 747, 2799, 14175, 287061, 530079, 3061987, 18371925, 73487701, 195967203, 1175803221
Offset: 1

Views

Author

Hugo Pfoertner, Jul 29 2024

Keywords

Examples

			a(1) = 1: the square 1 contained in every trajectory at the end,
a(2) = 3: 3 squares in 3 -> 10 -> 5 -> 4^2 -> 8 -> 2^2 -> 2 -> 1^2,
a(3) = 9: 4 squares in 3^2 -> 28 -> ... -> 10 -> as above,
a(4) = 27: the famous long trajectory A008884 includes the 5 squares 22^2, 11^2, 4^2, 2^2, 1^2,
a(5) = 133: 6 squares in 133 -> 20^2 -> 200 -> 10^2 -> 50 -> 5^2 -> ... -> 4^2, 2^2, 1^2,
a(6) = 315: 7 squares in 315 -> 946 -> ... -> 533 -> 40^2 -> 800 -> 20^2 -> as above,
a(7) = 747: 9 squares in 747 -> 2242 -> 1121 -> 58^2 -> 1682 -> 29^2 -> ... -> 1066 -> 533 -> as above.
		

Crossrefs

Programs

  • PARI
    nextc(x) = if (x%2==0, x\2, 3*x+1);
    a375093(upto=600000) = {my(m=0); for (k=1, upto, np=issquare(k); j=k; while (j>1, j=nextc(j); if (issquare(j), np++)); if (np>m, m=np; print1(k,", ")))}
Showing 1-4 of 4 results.