OFFSET
1,4
FORMULA
a(n) = sum_{k=1..L} floor(prime(n) / 3^k), where L = log(p_n)/log(3).
MATHEMATICA
lst={}; Do[p=Prime[n]; s=0; While[p>1, p=IntegerPart[p/3]; s+=p; ]; AppendTo[lst, s], {n, 5!}]; lst (* Vladimir Joseph Stephan Orlovsky, Jul 28 2009 *)
Join[{0}, FactorInteger[#][[2, 2]]&/@(Prime[Range[2, 70]]!)] (* Harvey P. Dale, Sep 05 2014 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Paul D. Hanna, Jan 26 2003
STATUS
approved