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!)
A126761 {a(k)} is such that, for every positive integer n, the n-th prime = Sum_{k=1..n, gcd(k,n+1)=1} a(k). 1

%I #10 Feb 06 2019 16:35:26

%S 2,1,3,1,9,-3,3,3,15,-5,17,-9,-5,21,3,-3,33,-25,-1,19,11,-11,25,11,

%T -23,15,25,-25,35,-29,-25,51,43,-59,79,-51,-93,109,79,-73,205,-197,

%U -189,83,-29,153,139,-223,-95,-193,41,371,125,-223,-177,-151,49,409,101

%N {a(k)} is such that, for every positive integer n, the n-th prime = Sum_{k=1..n, gcd(k,n+1)=1} a(k).

%H Rémy Sigrist, <a href="/A126761/b126761.txt">Table of n, a(n) for n = 1..10000</a>

%H Rémy Sigrist, <a href="/A126761/a126761.gp.txt">PARI program for A126761</a>

%e 31 is the 11th prime. So 31 = Sum_{1<=k<=11, gcd(k,12)=1} a(k) = a(1) + a(5) + a(7) + a(11) = 2 + 9 + 3 + 17.

%o (PARI) See Links section.

%Y Cf. A000040.

%K sign

%O 1,1

%A _Leroy Quet_, Feb 22 2007

%E More terms from _Rémy Sigrist_, Feb 06 2019

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 25 01:06 EDT 2024. Contains 371964 sequences. (Running on oeis4.)