1,1

Table of n, a(n) for n=1..5.

3 is in this sequence because (0+2)^0+2 = 1 + 2 = 3 for n = 0,

5 is in this sequence because (1+2)^1+2 = 3 + 2 = 5 for n = 1,

127 is in this sequence because (3+2)^3+2 = 125 + 2 = 127 for n = 3.

(MAGMA) [a: n in [0..9] | IsPrime(a) where a is (n+2)^n+2];

Sequence in context: A245442 A215239 A161749 * A180541 A103993 A088269

Adjacent sequences: A240586 A240587 A240588 * A240590 A240591 A240592

nonn,more

Ilya Lopatin and Juri-Stepan Gerasimov, Apr 08 2014

approved