OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
a(2n) = a(n) + 3n.
a(n) = Sum_{k>=1} floor(3n/2^k).
EXAMPLE
(3*5)! = 2^11 * 638512875, so a(5) = 11.
MATHEMATICA
a[n_] := 3*n - DigitCount[3*n, 2, 1]; Array[a, 100] (* Amiram Eldar, Sep 01 2024 *)
PROG
(PARI) a(n)=valuation((3*n)!, 2)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ralf Stephan, Oct 20 2003
STATUS
approved