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.

A085415 Take prime[n] and continue adding 1, 2, ..., a(n) until one reaches a prime.

Original entry on oeis.org

1, 4, 3, 3, 3, 3, 3, 4, 3, 12, 3, 3, 3, 4, 3, 3, 12, 3, 3, 8, 3, 4, 3, 12, 3, 3, 3, 3, 7, 8, 4, 3, 8, 4, 12, 3, 3, 4, 3, 3, 12, 4, 3, 3, 8, 7, 7, 3, 3, 4, 3, 12, 4, 3, 3, 3, 12, 3, 3, 8, 4, 11, 3, 3, 8, 8, 3, 4, 3, 4, 3, 15, 3, 3, 4, 3, 12, 8, 11, 4, 24, 4, 8, 3, 4, 3, 15, 3, 3, 7, 8, 12, 8, 11, 4, 3, 12, 8
Offset: 1

Views

Author

Zak Seidov, Jun 29 2003

Keywords

Comments

Resulting primes in A085416. See also A085417, A085418.
Prime[n] plus a triangular number is prime. - Harvey P. Dale, Jun 12 2013

Examples

			a(2)=4 because prime[2]+(1+2+3+4)=3+10=13 is a prime
		

Crossrefs

Programs

  • Mathematica
    Flatten[(Sqrt[1+8#]-1)/2&/@With[{trnos=Accumulate[Range[30]]}, Table[ Select[ trnos,PrimeQ[Prime[n]+#]&,1],{n,100}]]] (* Harvey P. Dale, Jun 12 2013 *)

Formula

Prime[n]+m*(1+m)/2 is a prime for some m>0.