A013597 a(n) = nextprime(2^n) - 2^n.
1, 1, 1, 3, 1, 5, 3, 3, 1, 9, 7, 5, 3, 17, 27, 3, 1, 29, 3, 21, 7, 17, 15, 9, 43, 35, 15, 29, 3, 11, 3, 11, 15, 17, 25, 53, 31, 9, 7, 23, 15, 27, 15, 29, 7, 59, 15, 5, 21, 69, 55, 21, 21, 5, 159, 3, 81, 9, 69, 131, 33, 15, 135, 29, 13, 131, 9, 3, 33, 29, 25, 11, 15, 29
Offset: 0
Keywords
Links
- T. D. Noe, Table of n, a(n) for n = 0..5000
- V. Danilov, Table for large n
Programs
-
Maple
A013597 := proc(n) nextprime(2^n)-2^n ; end proc: seq(A013597(n),n=0..40) ;
-
Mathematica
Table[NextPrime[#] - # &[2^n], {n, 0, 73}] (* Michael De Vlieger, Aug 15 2017 *)
-
PARI
a(n) = nextprime(2^n+1) - 2^n; \\ Michel Marcus, Nov 06 2015
-
Python
from sympy import nextprime def A013597(n): return nextprime(m:=1<
Chai Wah Wu, Dec 02 2024
Formula
Conjecture: a(n) < n^2/2 for n > 1. - Thomas Ordowski, Aug 13 2017
Comments