OFFSET
1,1
COMMENTS
Based on Euclid's proof that there are infinitely many primes.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..87
M. Kraitchik, On the divisibility of factorials, Scripta Math., 14 (1948), 24-26 (but beware errors). [Annotated scanned copy]
Hisanori Mishima, Factorizations of many number sequences
Hisanori Mishima, Factorizations of many number sequences
R. G. Wilson v, Explicit factorizations
MAPLE
a:= proc(n)
local N, F, i;
N:= 1 + mul(ithprime(i), i=1..n);
F:= select(type, map(t->t[1], ifactors(N, easy)[2]), integer);
if nops(F) >= 1 then return min(F) fi;
min(map(t->t[1], ifactors(N)[2]))
end proc:
seq(a(n), n=1..40); # Robert Israel, Oct 19 2014
MATHEMATICA
Map[FactorInteger,
Table[Product[Prime[n], {n, 1, m}] + 1, {m, 1, 36}]][[All,
1]][[All, 1]] (* Geoffrey Critzer, Oct 19 2014 *)
FactorInteger[#][[1, 1]]&/@(FoldList[Times, Prime[Range[40]]]+1) (* Harvey P. Dale, Oct 08 2021 *)
PROG
(PARI) a(n) = factor(1 + prod(i=1, n, prime(i)))[1, 1]; \\ Michel Marcus, Dec 10 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
One more term from Michel Marcus, Dec 10 2013
STATUS
approved