OFFSET
0,3
LINKS
Florian Luca and Paul Thomas Young, On the binary expansion of the odd Catalan numbers, Proceedings of the XIVth International Conference on Fibonacci Numbers, Morelia, Mexico, 2010, pp. 185-190; ResearchGate link.
MATHEMATICA
a[n_] := DigitCount[CatalanNumber[2^n-1], 2, 1]; Array[a, 23, 0]
PROG
(PARI) a(n) = my(m = -1 + 1 << n); hammingweight(binomial(2*m, m)/(m+1));
(Python)
from itertools import count, islice
def A379152_gen(): # generator of terms
yield from [1, 1]
c, s = 1, 3
for n in count(2):
c = (c*((n<<2)-2))//(n+1)
if n == s:
yield c.bit_count()
s = (s<<1)|1
CROSSREFS
KEYWORD
nonn,base,more
AUTHOR
Amiram Eldar, Dec 17 2024
STATUS
approved
