OFFSET
1,1
LINKS
Altug Alkan, Table of n, a(n) for n = 1..9216
PROG
(PARI) t=f=g=vector(200); t[1]=t[2]=t[3]=t[4]=1; for(n=5, #t, t[n] = t[n-t[n-1]]+t[n-t[n-4]]); f[1]=f[2]=1; for(n=3, #f, f[n] = f[t[n]]+f[n-t[n]]); g[1]=g[2]=g[3]=g[4]=1; for(n=5, #g, g[n] = g[t[n]]+g[n-t[n]]); vector(200, n, if(n%2==0, 3*f[n]-2*n, 3*g[n]-n))
CROSSREFS
KEYWORD
sign,look
AUTHOR
Altug Alkan, Sep 08 2018
STATUS
approved