OFFSET
0,3
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
FORMULA
a(n) = (3*a(n-1)) XOR a(n-2), a(0)=0, a(1)=1.
MATHEMATICA
RecurrenceTable[{a[0]==0, a[1]==1, a[n]==BitXor[3a[n-1], a[n-2]]}, a, {n, 30}] (* Harvey P. Dale, Nov 27 2014 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Alex Ratushnyak, May 09 2012
STATUS
approved