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.

A087758 Index of first occurrence of n in A005229.

Original entry on oeis.org

1, 3, 4, 6, 7, 8, 10, 12, 13, 14, 16, 17, 19, 20, 21, 22, 24, 26, 27, 29, 31, 32, 33, 34, 36, 37, 39, 40, 41, 43, 46, 47, 48, 49, 50, 51, 53, 55, 56, 58, 59, 60, 61, 63, 64, 67, 69, 70, 71, 72, 73, 74, 75, 77, 80, 81, 82, 83, 85, 87, 88, 89, 90, 92, 94, 95, 98, 99, 100, 102
Offset: 1

Views

Author

Roger L. Bagula, Oct 02 2003

Keywords

Crossrefs

Cf. A005229.

Programs

  • PARI
    {m=102;v5229=vector(m);v5229[1]=1;v5229[2]=1;for(k=3,m,v5229[k]=v5229[v5229[k-2]]+v5229[k-v5229[k-2]]); v=vector(m);for(j=1,m,if(v[v5229[j]]==0,v[v5229[j]]=j));n=0;while(v[n++ ]>0,print1(v[n],","))}

Formula

a(n) = least k such that A005229(k) = n.

Extensions

Edited by N. J. A. Sloane, Apr 07 2006