|
Search: id:A099890
|
|
|
| A099890 |
|
XOR BINOMIAL transform of the odd numbers; also the main diagonal of the XOR difference triangle A099889. |
|
+0 2
|
|
| 1, 2, 4, 0, 8, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128
(list; graph; listen)
|
|
|
OFFSET
|
0,2
|
|
|
FORMULA
|
a(0) = 1; a(2^n) = 2^(n+1); a(n) = 0 otherwise. a(n)=local(B);B=0;for(i=0, n, B=bitxor(B, binomial(n, i)%2*(2*(n-i)+1)));B
|
|
PROGRAM
|
(PARI) a(n)=local(B); B=0; for(i=0, n, B=bitxor(B, binomial(n, i)%2*(2*(n-i)+1))); B
|
|
CROSSREFS
|
Cf. A099884, A099889.
Sequence in context: A073800 A076813 A049289 this_sequence A137511 A011166 A115341
Adjacent sequences: A099887 A099888 A099889 this_sequence A099891 A099892 A099893
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
Paul D. Hanna (pauldhanna(AT)juno.com), Oct 29 2004
|
|
|
Search completed in 0.002 seconds
|