OFFSET
1,5
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..32768
FORMULA
MATHEMATICA
a[n_] := a[n] = If[n <= 2, 1, a[a[n - 1]] + a[n - a[n - 1]]]; Table[BitXor[a[#], a[n - #]] &@ a[n - 1] + Boole[n <= 2], {n, 107}] (* Michael De Vlieger, Mar 18 2017, after Robert G. Wilson v at A004001 *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Mar 18 2017
EXTENSIONS
Erroneous b-file replaced by a correct one - Antti Karttunen, Feb 24 2018
STATUS
approved