OFFSET
1,1
COMMENTS
A new prime is always found since at worst P can be the product of all primes {a(1..n-1)} and then P-1 certainly has a prime factor not among a(1..n-1).
Taking products P in ascending order generally results in smaller quantities to consider than always taking the product of all primes as done in A084598.
Conjecture: P-1 has at most one prime factor not already in the sequence, so the requirement of taking "the smallest such" is unnecessary (verified up to n=10000).
LINKS
Joel Brennan, Table of n, a(n) for n = 1..5000
EXAMPLE
For n=3, the primes so far are 2 and 3 but products P=2 or P=3 have P-1 = 1 or 2 which have no new prime factor. Product P = 2*3 = 6 has P-1 = 5 which is a new prime so a(3) = 5.
For n=4, the smallest product P with a new prime in P-1 is P = 3*5 = 15 for which P-1 = 14 and a(4) = 7 is its smallest new prime factor.
CROSSREFS
KEYWORD
nonn
AUTHOR
Joel Brennan, Jan 24 2023
STATUS
approved