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”).

A090620
Highest power of 13 dividing n!.
6
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8
OFFSET
0,27
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..10000 (first 1001 terms from T. D. Noe)
FORMULA
a(n) = A090622(n, 13) = A090623(n, 13) = [n/13]+[n/169]+[n/2197]+...
a(n) = n/12 + O(log n). - Charles R Greathouse IV, Aug 06 2012
MAPLE
a:= proc(n) option remember; `if`(n=0, 0,
a(n-1)+padic[ordp](n, 13))
end:
seq(a(n), n=0..120); # Alois P. Heinz, Jun 20 2020
MATHEMATICA
IntegerExponent[Range[0, 110]!, 13] (* Harvey P. Dale, Aug 22 2011 *)
FoldList[Plus, 0, IntegerExponent[Range[100], 13]] (* T. D. Noe, Apr 10 2012 *)
PROG
(PARI) a(n)=my(t); while(n, t+=n\=13); t \\ Charles R Greathouse IV, Aug 06 2012
CROSSREFS
Sequence in context: A211663 A000195 A135663 * A151659 A057467 A074594
KEYWORD
nonn,easy
AUTHOR
Henry Bottomley, Dec 06 2003
STATUS
approved