OFFSET
0,3
COMMENTS
The exponent of the highest power of 3 dividing binomial(n,k) is given by a(k)+a(n-k)-a(n).
FORMULA
a(n) = a(n-1)+1-A007949(n).
a(n) = log(denominator(n!/3^n))/log(3); a(n) = log_3(A125824(n)). - Paul Barry, Apr 02 2007
a(n) = n - A054861(n).
MATHEMATICA
Table[n-IntegerExponent[n!, 3], {n, 0, 70}] (* Harvey P. Dale, Aug 09 2015 *)
PROG
(PARI) vector(70, n, n--; n-valuation(n!, 3)) \\ Michel Marcus, Aug 19 2015
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Boddington, Jan 09 2004
STATUS
approved