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.

A166133 After initial 1,2,4, a(n+1) is the smallest divisor of a(n)^2-1 that has not yet appeared in the sequence.

Original entry on oeis.org

1, 2, 4, 3, 8, 7, 6, 5, 12, 11, 10, 9, 16, 15, 14, 13, 21, 20, 19, 18, 17, 24, 23, 22, 69, 28, 27, 26, 25, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 201, 80, 79
Offset: 1

Views

Author

Keywords

Comments

The initial 1,2,4 provides the smallest example with this rule that is not simply the integers in order, nor (apparently) ends with all divisors of a(n)^2-1 already present.
Apparently the sequence is infinite and includes every positive integer.
Apr 05 2015: John Mason has computed the first ten million terms. See link to zipped file. - N. J. A. Sloane, Apr 06 2015
The sequence contains many runs of incrementing and decrementing values. In the 1200 steps following the 4, there are 136 increments, 706 decrements, and 358 larger steps. What is the limiting distribution for these steps? [Click the "listen" button to appreciate these runs. - N. J. A. Sloane, Apr 03 2015]
After 3, 198, 270, 570, 522, 600, 822, and 882, we have a(n+1) = a(n)^2-1. Does this happen infinitely often? Cf. A256406, A256407.
A256543 gives numbers m such that a(m+1) = a(m)-1 or a(m+1) = a(m)+1. - Reinhard Zumkeller, Apr 01 2015
If this is a permutation, then A255833 is the inverse permutation. - M. F. Hasler, Apr 01 2015
a(A256703(n)+1) = a(A256703(n))^2 - 1. - Reinhard Zumkeller, Apr 08 2015
For n > 3: a(n) = A027750(a(n-1)^2-1, A256751(n)). - Reinhard Zumkeller, Apr 09 2015

Examples

			After a(24) = 22, the divisors of 22^2-1 = 483 are 1, 3, 7, 21, 23, 69, 161, and 483; 1, 3, 7, 21, and 23 have already occurred, so a(25) = 69.
		

Crossrefs

For records see A256403, A256404.
Smallest missing numbers: A256405, A256408, A256409.
Cf. A256541 (first differences), A256543.
Inverse (conjectured): A255833.
Cf. A256564 (smallest prime factors), A244080 (largest prime factors), A256578 (largest proper divisors), A256542 (number of divisors).
Upper envelope: the sequence of pairs (A256422(n),A256423(n)).
Cf. A256703.
Cf. A256751.

Programs

  • Haskell
    import Data.List (delete); import Data.List.Ordered (isect)
    a166133 n = a166133_list !! (n-1)
    a166133_list = 1 : 2 : 4 : f (3:[5..]) 4 where
       f zs x = y : f (delete y zs) y where
                y = head $ isect (a027750_row' (x ^ 2 - 1)) zs
    -- Reinhard Zumkeller, Apr 01 2015
  • Mathematica
    s = {1, 2, 4}; e = 4; Do[d = Divisors[e^2 - 1]; i = 1;
    While[MemberQ[s, d[[i]]], i++]; e = d[[i]]; AppendTo[s, e], {19997}]; s (* Hans Havermann, Apr 03 2015 *)
  • PARI
    al(n,m=4,u=6)={local(ds,db);
    u=bitor(u,1<
    				

A256403 Records in A166133.

Original entry on oeis.org

1, 2, 4, 8, 12, 16, 21, 24, 69, 201, 213, 319, 469, 519, 1141, 2321, 39203, 72899, 324899, 359999, 675683, 777923, 1127843, 4536899, 6718463, 10036223, 30272003, 44916803, 54022499, 100761443, 108743183, 110249999, 212051843, 233722943, 289952783, 326163599
Offset: 1

Views

Author

N. J. A. Sloane, Apr 01 2015

Keywords

Comments

See the "blog" file in A166133 for discussion.

Crossrefs

A256422 Numbers n such that A166133(n) sets a new record and also satisfies A166133(n)=A166133(n-1)^2-1.

Original entry on oeis.org

5, 293, 331, 616, 745, 983, 1076, 1672, 2177, 2821, 3599, 6591, 7804, 10174, 11629, 13141, 13397, 15589, 17767, 18814, 19859, 21112, 21247, 23242, 24785, 34351, 36447, 40122, 45630, 48033, 51235, 51519, 61179, 63826, 73394, 78624, 80112, 88259, 89607, 102217, 115981, 119167
Offset: 1

Views

Author

N. J. A. Sloane, Apr 08 2015

Keywords

Comments

A subsequence of A256404.
The points (A256422(i), A256423(i)) form the upper envelope of A166133.

Examples

			A166133(5) = 8 = A166133(4)^2-1 = 9-1.
		

Crossrefs

Formula

Intersection of A256404 and A256703+1. - Ray Chandler, Apr 13 2015

A256423 Consider numbers n such that A166133(n) sets a new record and also satisfies A166133(n)=A166133(n-1)^2-1; sequence gives values of A166133(n).

Original entry on oeis.org

8, 39203, 72899, 324899, 359999, 675683, 777923, 1127843, 4536899, 6718463, 10036223, 30272003, 44916803, 54022499, 100761443, 108743183, 110249999, 212051843, 233722943, 289952783, 326163599, 388011203, 395612099, 431475983
Offset: 1

Views

Author

N. J. A. Sloane, Apr 08 2015

Keywords

Comments

A subsequence of A256403.
The points (A256422(i), A256423(i)) form the upper envelope of A166133.

Examples

			A166133(5) = 8 = A166133(4)^2-1 = 9-1.
		

Crossrefs

Showing 1-4 of 4 results.