login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A087298
Exponent of 2 in the prime factorization of (3n)!.
1
1, 4, 7, 10, 11, 16, 18, 22, 23, 26, 31, 34, 35, 39, 41, 46, 47, 50, 53, 56, 57, 64, 66, 70, 71, 74, 78, 81, 82, 86, 88, 94, 95, 98, 101, 104, 105, 110, 112, 116, 117, 120, 127, 130, 131, 135, 137, 142, 143, 146, 149, 152, 153, 159, 161, 165, 166
OFFSET
1,2
LINKS
FORMULA
a(2n) = a(n) + 3n.
a(n) = Sum_{k>=1} floor(3n/2^k).
a(n) = A011371(3*n) = 3*n - A036555(n). - Amiram Eldar, Sep 01 2024
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
Cf. A011371 (n!), A005187 ((2n)!), A036555.
Sequence in context: A115566 A364840 A190507 * A237707 A211642 A127958
KEYWORD
nonn,easy
AUTHOR
Ralf Stephan, Oct 20 2003
STATUS
approved