OFFSET
0,2
FORMULA
a(0)=1, a(n+1) = (a(n)*6) XOR a(n), where XOR is the bitwise exclusive-or operator.
MATHEMATICA
NestList[BitXor[6#, #]&, 1, 30] (* Harvey P. Dale, Nov 23 2012 *)
PROG
(Python)
a=1
for n in range(55):
. print a,
. a ^= a*6
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Alex Ratushnyak, May 05 2012
STATUS
approved