OFFSET
1,1
COMMENTS
For n = 10r+1, a(n) >= s_n(6).
EXAMPLE
a(3) = 113: 3+1 = 4 is composite, 2*4+1 = 9 is composite, 3*9+1 = 28 is composite, 4*28+1 = 113 is prime.
PROG
(MATLAB) s = n + 1; k = 2; while (~isprime(s)) s = k*s + 1; k = k + 1; end a = s
CROSSREFS
KEYWORD
nonn,hard
AUTHOR
Amarnath Murthy and Meenakshi Srikanth (menakan_s(AT)yahoo.com), Jun 16 2003
EXTENSIONS
Edited and extended by David Wasserman, Sep 09 2003
One more term from David Wasserman, Jan 05 2005
STATUS
approved