OFFSET
1,1
COMMENTS
First prime in the sequence n + 1, 2n + 1, 6n + 1, 24n + 1, 120n + 1, ...
If p is a prime then a(p-1) = p.
EXAMPLE
n=275, for k=1,..,24 {1+275*k!}={276,551,.......,170623310476640845824000001} and a(275)=170623310476640845824000001, the prime generated by A057217(275)=24 as 1+275*24!
PROG
(PARI) a(n) = k = 1; while (!isprime(p=1+n*k!), k++); p; \\ Michel Marcus, Feb 20 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Sep 27 2000
EXTENSIONS
More terms from Mark Hudson (mrmarkhudson(AT)hotmail.com), Aug 12 2004
STATUS
approved