OFFSET
1,3
COMMENTS
In these games, the left can always win if he is to play second.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..16386
A. Karttunen, Scheme-program for computing this sequence.
PROG
(PARI)
A320006(n) = if(!n, 1, my(m=(n>>1), r=0); while(m>0, if((m%2)&&!A320007(r), return(0)); m >>= 2; r++); (1));
A320007(n) = if(!n, 0, my(m=n, s=0); while(m>0, if((m%2)&&A320006(s), return(1)); m >>= 2; s++); (0));
k=0; n=0; while(k<16386, if(A320006(n), k++; write("b126001.txt", k, " ", n)); n++);
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Dec 18 2006
STATUS
approved