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) = 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
KEYWORD
nonn,easy
AUTHOR
Henry Bottomley, Dec 06 2003
STATUS
approved