%I #25 Mar 01 2018 02:44:38
%S 5,17,13,17,41,97,29,73,37,41,89,97,53,113,61,257,137,73,1217,181,337,
%T 89,829,97,101,937,109,113,233,241,1117,257,2113,137,281,577,149,1217,
%U 157,641,36901,337,173,353,181,1151,1693,193,197,401,409,1301,1697,433
%N a(n) is the smallest prime of the form n*m^q + 1 where m is an integer and q >= 2.
%H Michel Marcus, <a href="/A213738/b213738.txt">Table of n, a(n) for n = 1..10000</a>
%e a(11) = 89 = 11*2^3 + 1.
%o (PARI) a(n) = {forprime(p=2, , qq = (p-1)/n; if ((denominator(qq) == 1) && ispower(qq), return (p)););} \\ _Michel Marcus_, Feb 25 2018
%Y Cf. A001597, A213740.
%K nonn
%O 1,1
%A _Michel Lagneau_, Jun 19 2012