OFFSET
0,2
COMMENTS
a(n) is also the largest integer such that 2^a(n) divides binomial(6n,3n)=A066802(n). - Benoit Cloitre, Mar 27 2002
a(A002450(n)) = 2*n.
LINKS
T. D. Noe, Table of n, a(n) for n = 0..1000
S. R. Finch, P. Sebah and Z.-Q. Bai, Odd Entries in Pascal's Trinomial Triangle, arXiv:0802.2654 [math.NT], 2008.
Philippe Flajolet, Peter Grabner, Peter Kirschenhofer, Helmut Prodinger and Robert F. Tichy, Mellin transforms and asymptotics: digital sums, Theoret. Comput. Sci. 123 (1994), 291-314.
Michael Gilleland, Some Self-Similar Integer Sequences
D. J. Newman, On the number of binary digits in a multiple of three, Proc. Amer. Math. Soc. 21 (1969) 719-721.
MAPLE
t1:=[];
for n from 0 to 100 do t2:=convert(3*n, base, 2); t3:=add(t2[i], i=1..nops(t2)); t1:=[op(t1), t3]; od:
t1;
MATHEMATICA
Total/@IntegerDigits[3Range[0, 100], 2] (* Harvey P. Dale, Oct 03 2011 *)
PROG
(Haskell)
a036555 = a000120 . (* 3) -- Reinhard Zumkeller, Sep 01 2013
(PARI) a(n) = hammingweight(3*n); \\ Michel Marcus, Mar 13 2014
CROSSREFS
KEYWORD
nonn,base,easy,nice
AUTHOR
EXTENSIONS
Name edited by Michel Marcus, Mar 13 2014
STATUS
approved