OFFSET
1,1
LINKS
Indranil Ghosh, Table of n, a(n) for n = 1..50000
FORMULA
a(n) = A156207(prime(n)). - R. J. Mathar, Sep 10 2016
EXAMPLE
For n = 5, prime(5) = 11 and A156207(11) = 1*1 + 1*2 = 3. So, a(5) = 3. - Indranil Ghosh, Feb 11 2017
MATHEMATICA
Table[Total[IntegerDigits[#] Range@ IntegerLength@ #] &@ Prime@ n, {n, 75}] (* Michael De Vlieger, Feb 11 2017 *)
PROG
(PARI) g(x) = local(v, j); v=Vec((Str(x))); sum(j=1, length(v), j*eval(v[j]))
g1(n) = local(j); forprime(j=1, n, print1(g(j)", "))
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Cino Hilliard, Feb 07 2009
STATUS
approved