OFFSET
1,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
a(n)=ds_prime(n)(n^3), where ds_prime(n)=digital sum base the n-th prime.
a(n)=n^3-(prime(n)-1)*sum{k>0, floor(n^3/prime(n)^k)}.
EXAMPLE
a(2)=ds_prime(2)(2^3)=ds_3(8)=2+2=4; a(6)=ds_prime(6)(6^3)=ds_13(216)=1+3+8=12.
MATHEMATICA
Table[Total[IntegerDigits[n^3, Prime[n]]], {n, 70}] (* Harvey P. Dale, Oct 21 2011 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Hieronymus Fischer, Dec 24 2007
STATUS
approved