OFFSET
0,5
LINKS
Max Barrentine, Table of n, a(n) for n = 0..59048
FORMULA
a(3n)=a(n), a(3n+1)=a(3n)+a(3(n+1)), a(3n+2)=a(3(n+1))-a(3n); a(0)=0, a(1)=1.
MATHEMATICA
a[0] = 0; a[1] = 1; a[n_] := a[n] = Switch[Mod[n, 3], 0, a[n/3], 1, a[3((n-1)/3 + 1)] + a[n-1], 2, a[3((n-2)/3 + 1)] - a[n-2]];
a /@ Range[0, 100] (* Jean-François Alcover, Apr 10 2020 *)
CROSSREFS
KEYWORD
sign,look
AUTHOR
Max Barrentine, Mar 20 2016
STATUS
approved