|
| |
|
|
A099885
|
|
Central terms of the rows of the XOR difference triangle of the powers of 2 (A099884) so that a(n) = A099884(n,[n/2]).
|
|
1
| |
|
|
1, 2, 6, 12, 20, 40, 120, 240, 272, 544, 1632, 3264, 5440, 10880, 32640, 65280, 65792, 131584, 394752, 789504, 1315840, 2631680, 7895040, 15790080, 17895424, 35790848, 107372544, 214745088, 357908480, 715816960, 2147450880, 4294901760
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 0,2
|
|
|
COMMENTS
| XOR BINOMIAL transform of this sequence is A099886.
|
|
|
FORMULA
| a(n) = 2^[(n+1)/2]*A001317([n/2]), where A001317 forms the XOR BINOMIAL transform of the powers of 2.
|
|
|
EXAMPLE
| XOR difference triangle of the powers of 2 (A099884) begins:
[_1],
[_2,3],
[4,_6,5],
[8,_12,10,15],
[16,24,_20,30,17],
[32,48,_40,60,34,51],
[64,96,80,_120,68,102,85],
[128,192,160,_240,136,204,170,255],...
(the central terms are underscored).
|
|
|
PROG
| (PARI) {a(n)=local(B); B=0; for(i=0, n\2, B=bitxor(B, binomial(n\2, i)%2*2^(n\2-i))); 2^((n+1)\2)*B}
|
|
|
CROSSREFS
| Cf. A099884, A001317, A099886.
Sequence in context: A078878 A095361 A095362 * A106372 A161203 A184637
Adjacent sequences: A099882 A099883 A099884 * A099886 A099887 A099888
|
|
|
KEYWORD
| nonn
|
|
|
AUTHOR
| Paul D. Hanna (pauldhanna(AT)juno.com), Oct 28 2004
|
| |
|
|