A075403 Smallest k such that the difference between the k-th triangular number and the following prime is equal to n.
2, 1, 5, 28, 10, 48, 13, 15, 65, 160, 58, 80, 106, 32, 162, 91, 94, 188, 70, 127, 62, 304, 201, 120, 394, 103, 141, 244, 382, 455, 301, 380, 521, 700, 625, 212, 721, 611, 681, 979, 277, 815, 1201, 1275, 569, 4588, 558, 2331, 5113, 1704, 1337, 2551, 2101
Offset: 0
Keywords
Links
- Donovan Johnson, Table of n, a(n) for n = 0..500
Crossrefs
Cf. A075402.
Programs
-
PARI
for(n=1,100,f=0:for(k=1,50000,if(nextprime(k*(k+1)/2)-k*(k+1)/2==n,f=k:break)):print1(f","))
Extensions
Corrected and extended by Ralf Stephan, Mar 19 2003
Comments