|
| |
|
|
A099890
|
|
XOR BINOMIAL transform of the odd numbers; also the main diagonal of the XOR difference triangle A099889.
|
|
1
| |
|
|
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; refs; listen; history; internal format)
|
|
|
|
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
|
|
|
PROG
| (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 * A137511 A011166 A181274
Adjacent sequences: A099887 A099888 A099889 * A099891 A099892 A099893
|
|
|
KEYWORD
| nonn
|
|
|
AUTHOR
| Paul D. Hanna (pauldhanna(AT)juno.com), Oct 29 2004
|
| |
|
|