OFFSET
1,1
COMMENTS
No primes other than 2,5,109 found in this sequence for n <= 1000. Conjecture: There are no primes in the sequence 2^2 * 3^3 * 4^4 * ... *n^n + 1 for n > 3. Conjecture: There are no primes in the sequence 2^2 * 3^3 * 4^4 * ... * n^n + 61 for all n.
REFERENCES
D. E. Knuth, The Art of Computer Programming, Volume 1, 1997, p. 116, problem 7.
FORMULA
Prod(k^k, k=1..n)+1 is Composite. Exp(log(1) + 2log(2) + 3log(3) + ... klog(k)) = exp(Sum(k*log(k), k=1..n)).
MATHEMATICA
Select[1+#&/@FoldList[Times, 1, Table[n^n, {n, 10}]], !PrimeQ[#]&] (* Harvey P. Dale, May 02 2011 *)
PROG
(PARI) pcomposits(n, b) = { for(x=1, n, p=1; for(y=1, x, p = p*(y^y); ); if(!isprime(p+b), print1(p+b", ")); ) }
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, Feb 12 2003
STATUS
approved