OFFSET
0,1
COMMENTS
The nim sum of two numbers is the bitwise exclusive-or of the numbers. - Andrew Howroyd, Apr 13 2021
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..500
FORMULA
EXAMPLE
nim sum(2,1) = 3; nim sum(3,4)=7; nim sum(7,11) = 12; nim sum(18,29) = 15; nim sum(47,76) = 99; nim sum(123,199) = 188.
PROG
(PARI)
L(n)={fibonacci(n+1) + fibonacci(n-1)}
a(n)={bitxor(L(2*n), L(2*n+1))} \\ Andrew Howroyd, Apr 13 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Amal Dua (amaldua1992(AT)hotmail.com), Oct 03 2009
EXTENSIONS
Terms a(6) and beyond from Andrew Howroyd, Apr 13 2021
STATUS
approved