A280380 First occurrence of A280379(k) = n.
1, 2, 30, 46, 374, 2146, 5945, 14855, 24702
Offset: 0
Keywords
Examples
For prime(30)=113, A056171(113) = 14, A104272(12)=107 and A104272(13) = 127, so 14 - 12 = 2 (First occurrence).
Programs
-
PARI
\\RR[x] is a list of Ramanujan primes, A104272. {plimit=1.1*10^6;i=n=s=0; forprime(p=2,plimit, s++; if(p==RR[n+1],n++); if(i==s-primepi(floor(p/2))-n,print(i," ",s);i++) ) }
Comments