cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A075403 Smallest k such that the difference between the k-th triangular number and the following prime is equal to n.

Original entry on oeis.org

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

Views

Author

Amarnath Murthy, Sep 23 2002

Keywords

Comments

Index of the first occurrence of n in A075402.

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