OFFSET
1,6
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
PROG
(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
(Haskell)
a095774 n = 2 * a003160 n - n -- Reinhard Zumkeller, Aug 02 2013
CROSSREFS
KEYWORD
sign
AUTHOR
Benoit Cloitre, Jun 05 2004
EXTENSIONS
Offset corrected by Reinhard Zumkeller, Aug 02 2013
STATUS
approved