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.

A063898 Smallest k > 0 such that k + F_n are all primes, where F_n is the n-th Fermat number.

Original entry on oeis.org

2, 2, 2, 14, 14, 14, 66746, 475424, 12124166, 14899339904
Offset: 0

Views

Author

Felice Russo, Aug 29 2001

Keywords

Comments

Is this sequence finite?

Examples

			For j=3 a(3)=2 because 257+2, 17+2, 5+2, 3+2 are all primes.
For j=4 a(4)=14 because 65537+14, 257+14, 17+14, 5+14, 3+14 are all primes.
		

Crossrefs

Cf. A000215 (Fermat numbers).

Programs

  • PARI
    okprimep(mink, vecf) = {for (i=1, #vecf, if (! isprime(mink + vecf[i]), return (0));); return (1);}
    a(n) = {mink = 1; vecf = vector(n+1, i, 2^(2^(i-1)) + 1); while (! okprimep(mink, vecf), mink++); mink;} \\ Michel Marcus, Sep 28 2013

Extensions

a(10) from Donovan Johnson, Oct 12 2008