OFFSET
1,3
COMMENTS
Numbers n such that a(n)=2 are found in A006598. - Michel Marcus, Mar 07 2013
EXAMPLE
1*2^5*(2^5-1)+1=993=3*331
2*2^5*(2^5-1)+1=1985=5*397
3*2^5*(2^5-1)+1=2977=13*229
4*2^5*(2^5-1)+1=3969=3*1323
5*2^5*(2^5-1)+1=4961=11*451
6*2^5*(2^5-1)+1=5953 prime so a(5)=6
PROG
(PARI) a(n) = {k = 1; while (! isprime(k*2^n*(2^n-1) + 1), k++); return (k); } \\ Michel Marcus, Mar 07 2013
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Pierre CAMI, Nov 18 2004
STATUS
approved