OFFSET
0,2
COMMENTS
LINKS
Paul D. Hanna, Table of n, a(n) for n = 0..1024
FORMULA
a(n) = SumXOR_{k=0..n} (C(n, k) mod 2)*3^k, where SumXOR is summation under XOR.
PROG
(PARI) a(n)=local(B); B=0; for(i=0, n, B=bitxor(B, binomial(n, i)%2*3^(n-i))); B
CROSSREFS
KEYWORD
nonn
AUTHOR
Paul D. Hanna, Oct 29 2004
STATUS
approved