0,4

Table of n, a(n) for n=0..76.

a(5)=4 because 2^5+1+4=37 that is a prime.

(PARI) a(n) = k = 0; while (! isprime(2^n+k+1), k++); k; \\ Michel Marcus, Sep 27 2013

Cf. A016014.

A013597(n) - 1.

Sequence in context: A211318 A324239 A274706 * A159984 A240697 A271230

Adjacent sequences: A037032 A037033 A037034 * A037036 A037037 A037038

nonn

Felice Russo

More terms from Erich Friedman

approved