OFFSET
0,3
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
S. R. Finch, P. Sebah and Z.-Q. Bai, Odd Entries in Pascal's Trinomial Triangle, arXiv:0802.2654 [math.NT], 2008.
FORMULA
a(n) = A000120(3n+1).
a(n) = A240883(n) + 1. - Reinhard Zumkeller, Apr 14 2014
MATHEMATICA
Table[Count[IntegerDigits[3 n + 1, 2], 1], {n, 0, 92}] (* Jayanta Basu, Jun 29 2013 *)
DigitCount[#, 2, 1]&/@(3Range[0, 100]+1) (* Harvey P. Dale, Apr 03 2021 *)
PROG
(Haskell)
a046818 = a000120 . a016777 -- Reinhard Zumkeller, Apr 14 2014
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved