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.

A081296 Primes of the form 2^k - k.

Original entry on oeis.org

2, 5, 503, 8179, 524269, 2097131, 36028797018963913, 3705346855594118253554271520278013051304639509300498049262642688253220148477691
Offset: 1

Views

Author

Reinhard Zumkeller, Apr 20 2003

Keywords

Comments

Primes in A000325.
The corresponding k are given in A048744.
Next term a(9) contains 1029 digits and is too large to include. - R. J. Mathar, Jul 15 2007

Crossrefs

Cf. A048744 (k such that 2^k - k is prime).

Programs

  • Mathematica
    Select[Table[2^n-n,{n,300}],PrimeQ] (* Harvey P. Dale, Nov 24 2018 *)
  • PARI
    { for(k=1,100000, if(isprime(2^k-k), print1(2^k-k,", ")));} \\ R. J. Mathar, Jul 15 2007

Formula

a(n) = 2^A048744(n) - A048744(n). - R. J. Mathar, Jul 22 2009

Extensions

More terms from R. J. Mathar, Jul 15 2007