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.

A277848 Index at which n occurs in A217727, or 0 if there is no such index.

Original entry on oeis.org

1, 7, 2, 5, 18, 21, 11, 8, 28, 35, 46, 74, 54, 25, 3, 129, 32, 39, 78, 58, 133, 43, 62, 6, 95, 91, 152, 171, 87, 71, 190, 16, 148, 328, 19, 181, 167, 51, 227, 405, 618, 355, 344, 254, 440, 83, 926, 22, 67, 277, 100, 157, 1400, 195, 333, 186, 1144, 232, 259, 445, 282, 105, 12, 237, 110, 115, 388, 211, 468, 383, 492, 144, 594, 307, 366, 206, 126, 533, 324, 9, 463, 642
Offset: 2

Views

Author

M. F. Hasler, Nov 20 2016

Keywords

Comments

It is conjectured that all integers >= 2 appear in A217727.

Crossrefs

Programs

  • PARI
    A277848(n,a=2,u=[])={for(i=1,9e9,a==n&&return(i);u=setunion(u,[a]); while(#u>1&&u[2]==u[1]+1, u=u[^1]); my(t=log(a)\1); a=if(t>u[1]&&!setsearch(u, t), t, a^2))} \\ This code computes ("for each n") the sequence A217727 up to the index where n occurs.
    
  • PARI
    A277848_vec(N,a=2,u=[],v=vector(N))={my(i=1,t); until(u[1]>N,a<=N&&v[a]=i; u=setunion(u,[a]); while(#u>1&&u[2]==u[1]+1, u=u[^1]);i++; a=if((t=log(a)\1)>u[1]&&!setsearch(u, t), t, a^2));v[^1]} \\ This is more efficient to compute a whole range a(1..N).

A277850 a(n+1) = floor(log(a(n))+1) if this number does not occur earlier, a(n+1) = a(n)^2 else; a(n) = n for n <= 2.

Original entry on oeis.org

0, 1, 2, 4, 16, 3, 9, 81, 5, 25, 625, 7, 49, 2401, 8, 64, 4096, 16777216, 17, 289, 6, 36, 1296, 1679616, 15, 225, 50625, 11, 121, 14641, 10, 100, 10000, 100000000, 19, 361, 130321, 12, 144, 20736, 429981696, 20, 400, 160000, 25600000000, 24, 576, 331776, 13, 169, 28561, 815730721, 21, 441, 194481, 37822859361, 1430568690241985328321
Offset: 0

Views

Author

M. F. Hasler, Nov 20 2016

Keywords

Comments

A variant of A217727. Appears to be a permutation of the integers.

Crossrefs

Cf. A217727.

Programs

  • PARI
    {print1("0, 1, "a=2);u=[];for(i=2,99,u=setunion(u,[a]); while(#u>1&&u[2]==u[1]+1,u=u[^1]);my(t=log(a)\1+1);print1(", "a=if(t>u[1]&&!setsearch(u,t),t,a^2)))}
Showing 1-2 of 2 results.