OFFSET
0,8
FORMULA
a(n) = floor((sqrt(24n+1)-1)/6).
a(A005449(n)) = n.
PROG
(PARI) a(n)=if(n<0, 0, (sqrtint(24*n+1)-1)\6)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Michael Somos, Jun 19 2003
STATUS
approved