|
Search: id:A067018
|
|
|
| A067018 |
|
Start with a(0)=1, a(1)=4, a(2)=3, a(3)=2; for n>=3, a(n+1) = mex_i (nim-sum a(i)+a(n-i)), where mex means smallest nonnegative missing number. |
|
+0 3
|
|
| 1, 4, 3, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 0
(list; graph; listen)
|
|
|
OFFSET
|
0,2
|
|
|
COMMENT
|
Nim-sum is addition in base 2 without carry (XOR the binary expansions).
|
|
REFERENCES
|
R. K. Guy, Unsolved Problems in Number Theory, E27.
|
|
EXAMPLE
|
a(5) = mex{1 xor 0, 4 xor 2, 3 xor 3, etc. (duplicates)} = mex{1 xor 0, 100 xor 10, 11 xor 11} (in base 2) = mex{1, 6, 0} = 2
|
|
CROSSREFS
|
Cf. A067016, A067017.
Sequence in context: A154960 A143543 A067017 this_sequence A100802 A022960 A023446
Adjacent sequences: A067015 A067016 A067017 this_sequence A067019 A067020 A067021
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
N. J. A. Sloane (njas(AT)research.att.com), Feb 17 2002
|
|
EXTENSIONS
|
More terms from John W. Layman (layman(AT)math.vt.edu), Feb 20 2002
|
|
|
Search completed in 0.002 seconds
|