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.

A191620 Least k such that (2^n-k)*2^n - 1 is a prime number.

Original entry on oeis.org

0, 1, 2, 1, 1, 2, 2, 7, 1, 1, 14, 2, 11, 11, 2, 22, 7, 1, 2, 8, 2, 11, 14, 32, 2, 13, 2, 11, 52, 8, 10, 49, 13, 11, 4, 11, 31, 1, 23, 64, 11, 47, 20, 38, 1, 14, 4, 88, 7, 1, 47, 14, 22, 8, 2, 14, 1, 31, 20, 71, 20, 4, 44, 101, 38, 43, 80, 49, 11, 59, 4, 8
Offset: 1

Views

Author

Pierre CAMI, Jun 09 2011

Keywords

Comments

Does a(n) exist for every n? This does not seem to be known, even on the GRH; see Heath-Brown. [Charles R Greathouse IV, Dec 27 2011]

Crossrefs

Programs

  • Mathematica
    Table[a = 0; While[! PrimeQ[(2^n - a)*2^n - 1], a++]; a, {n, 100}] (* T. D. Noe, Jun 11 2011 *)
  • PARI
    a(n)=forstep(k=4^n-1,1,-2^n,if(ispseudoprime(k),return(2^n-(k+1)>>n))) \\ Charles R Greathouse IV, Dec 27 2011