login
A097708
Sum of prime-length repunits: Sum_{k=1..n} r(prime(k)), where r()=A002275.
1
0, 11, 122, 11233, 1122344, 11112233455, 1122223344566, 11112233334455677, 1122223344445566788, 11112233334455556677899, 11111122223344445566667789010, 1122222233334455556677778900121
OFFSET
0,2
EXAMPLE
a(3)=11233 because 11 + 111 + 11111 = 11233.
PROG
(PARI) a(n) = sum(k=1, n, (10^prime(k)-1)/9); \\ Michel Marcus, Jul 17 2022
CROSSREFS
Cf. A097709.
Partial sums of A031974.
Sequence in context: A163462 A334000 A041222 * A015499 A039438 A258843
KEYWORD
base,nonn
AUTHOR
Jason Earls, Aug 21 2004
STATUS
approved