OFFSET
1,1
COMMENTS
This sequence is well defined: for any n > 0, if p > 1 divides 1+n, then p divides 1+n*(1+p), gcd(1+n, 1+n*(1+p)) > 1 and a(n) <= p.
This sequence is unbounded.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65537
FORMULA
EXAMPLE
For n = 2:
- gcd(1+2*1, 1+2*2) = 1,
- gcd(1+2*1, 1+2*3) = 1,
- gcd(1+2*2, 1+2*3) = 1,
- however gcd(1+2*1, 1+2*4) = 3,
- so a(2) = 3.
PROG
(PARI) a(n) = { my (p=1); for (k=1, oo, if (gcd(p, 1+n*k)>1, return (k-1), p*=1+n*k)) }
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Dec 16 2020
STATUS
approved