OFFSET
1,1
COMMENTS
We use the convention that an empty product is 1.
By decree, gcd(S(n+1),p(n)) = 1, gcd(S(n+1),q(n)) = q(n) = p(n+1), S(n+1) >= r(n). (Note p(n) is as defined above; it is not the n-th prime.)
Conjecture: except for the four terms equal to 25, a(n) is always a prime, and all the primes appear and in their natural order.
The conjecture is true for n up to 10^7. - Lars Blomberg Jan 14 2017
LINKS
N. J. A. Sloane, Table of n, a(n) for n = 1..10000
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jan 12 2017
STATUS
approved