1,1

If a(n) = K, a(K) <= n for all n.

a(n) = 1 if and only if n is in A002982.

Table of n, a(n) for n=1..79.

(PARI)

a(n)=k=1; while(!ispseudoprime(k!*n!-1), k++); k

n=1; while(n<100, print1(a(n), ", "); n++)

Cf. A002982, A231549.

Sequence in context: A292068 A140056 A240239 * A083663 A085427 A172130

Adjacent sequences: A247041 A247042 A247043 * A247045 A247046 A247047

nonn

Derek Orr, Sep 10 2014

approved