OFFSET
1,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = [(n+1)/3] - a([(n+1)/3]) + [n/3] - a([n/3]), starting with a(0)=0, where []=floor.
MATHEMATICA
a[0] = 0; h = 150; Table[a[n] = Floor[(n + 1)/3] - a[Floor[(n + 1)/3]] + Floor[n/3] - a[Floor[n/3]], {n, 1, h}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Apr 28 2011
STATUS
approved