login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A097708 Sum of prime-length repunits: Sum_{k=1..n} r(prime(k)), where r()=A002275. 1

%I #13 Jul 17 2022 09:21:30

%S 0,11,122,11233,1122344,11112233455,1122223344566,11112233334455677,

%T 1122223344445566788,11112233334455556677899,

%U 11111122223344445566667789010,1122222233334455556677778900121

%N Sum of prime-length repunits: Sum_{k=1..n} r(prime(k)), where r()=A002275.

%e a(3)=11233 because 11 + 111 + 11111 = 11233.

%o (PARI) a(n) = sum(k=1, n, (10^prime(k)-1)/9); \\ _Michel Marcus_, Jul 17 2022

%Y Cf. A097709.

%Y Partial sums of A031974.

%K base,nonn

%O 0,2

%A _Jason Earls_, Aug 21 2004

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 19:02 EDT 2024. Contains 371798 sequences. (Running on oeis4.)