OFFSET
1,3
FORMULA
a(n) = floor(n*s^2)-floor(s*floor(n*s)), where s=1+phi.
PROG
(PARI) a(n) = my(fhi=(1+sqrt(5))/2); floor(3*fhi*n) - 3*floor(fhi*n); \\ Michel Marcus, Aug 26 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Fred Lunnon, Jun 20 2008
STATUS
approved