A097058 Numbers of the form p^2 + 2^p for p prime.
8, 17, 57, 177, 2169, 8361, 131361, 524649, 8389137, 536871753, 2147484609, 137438954841, 2199023257233, 8796093024057, 140737488357537, 9007199254743801, 576460752303426969, 2305843009213697673, 147573952589676417417, 2361183241434822611889
Offset: 1
Examples
For example, the first two terms are 2^2 + 2^2 = 8, 3^2 + 2^3 = 17
Links
- Alois P. Heinz, Table of n, a(n) for n = 1..200
Programs
-
Maple
a:= proc(n) local p; p:= ithprime(n); p^2+2^p end: seq(a(n), n=1..25); # Alois P. Heinz, May 15 2013
-
Mathematica
Table[ Prime[n]^2 + 2^Prime[n], {n, 16}] (* Robert G. Wilson v, Sep 15 2004 *) #^2+2^#&/@Prime[Range[20]] (* Harvey P. Dale, Jul 12 2011 *)
-
PARI
forprime(p=2,61,print1(p^2+2^p,",")) \\ Klaus Brockhaus
Comments