OFFSET
1,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
FORMULA
MATHEMATICA
Table[1 + 2^(Prime[n + 1] - Prime[n]), {n, 1, 50}] (* G. C. Greubel, Feb 23 2017 *)
1+2^#&/@Differences[Prime[Range[70]]] (* Harvey P. Dale, Feb 18 2023 *)
PROG
(PARI) a(n) = 1 + 2^( prime(n + 1) - prime(n) )
(Python)
from sympy import prime
def A137780(n): return 1+(1<<(prime(n+1)-prime(n))) # Chai Wah Wu, Jul 08 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Alexander R. Povolotsky, Apr 28 2008
EXTENSIONS
Extended beyond a(30) by M. F. Hasler, Apr 21 2009
STATUS
approved