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.

A095774 a(n)=2*A003160(n)-n.

Original entry on oeis.org

1, 0, -1, 0, 1, 2, 1, 0, 1, 0, -1, 0, -1, -2, -1, 0, 1, 0, -1, 0, 1, 2, 1, 0, 1, 2, 3, 2, 1, 2, 1, 0, 1, 0, -1, 0, 1, 2, 1, 0, 1, 0, -1, 0, -1, -2, -1, 0, 1, 0, -1, 0, -1, -2, -1, -2, -3, -2, -1, 0, -1, -2, -1, 0, 1, 0, -1, 0, 1, 2, 1, 0, 1, 0, -1, 0, -1, -2, -1, 0, 1, 0, -1, 0, 1, 2, 1, 0, 1, 2, 3, 2, 1, 2, 1, 0, 1, 0, -1, 0, 1, 2, 1, 0, 1, 2, 3, 2, 1, 2, 3, 4, 3, 2
Offset: 1

Views

Author

Benoit Cloitre, Jun 05 2004

Keywords

Programs

  • Haskell
    a095774 n = 2 * a003160 n - n  -- Reinhard Zumkeller, Aug 02 2013
  • PARI
    m=1106;v=vector(m,j,1);for(n=3,m,g=n-v[v[n-1]]-v[v[n-2]];v[n]=g);a(n)=2*v[n]-n
    

Extensions

Offset corrected by Reinhard Zumkeller, Aug 02 2013