OFFSET
0,3
COMMENTS
Also second binomial transform of A109629.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..3311
Wikipedia, Gray code
FORMULA
a(n) = Sum_{k=0..n} binomial(n,k) * A003188(k).
MAPLE
g:= proc(n) g(n):= Bits[Xor](n, iquo(n, 2)) end:
a:= n-> add(binomial(n, k)*g(k), k=0..n):
seq(a(n), n=0..40);
PROG
(Python)
from math import comb
def A372304(n): return sum(comb(n, k)*(k^k>>1) for k in range(n+1)) # Chai Wah Wu, May 02 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, May 02 2024
STATUS
approved