OFFSET
1,1
COMMENTS
a(38) = 13 because prime(38) = 163 and the corresponding EM sequence is {163, 2, 3, 11, 7, 75307, 3931, 5399, 3041, 409, 179, 92958641873, 5, 2003, ...}, where 5 appears at the 13th position. - David Wasserman, Apr 19 2007
LINKS
David Wasserman, Apr 19 2007, Table of n, a(n) for n = 1..1000
PROG
(PARI) em(i) = local(p, c, n, f, q); p = prime(i); if (p == 5, return(1)); c = 1; n = p; while (1, c++; f = factor(n + 1, 2^31 - 1); q = f[1, 1]; if (!isprime(q), f = factor(n + 1); q = f[1, 1]); if (q == 5, return(c)); n *= q); \\ David Wasserman, Apr 19 2007
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, May 04 2004
EXTENSIONS
More terms from David Wasserman, Apr 19 2007
STATUS
approved