OFFSET
2,1
COMMENTS
Is gcd(n, a(n)) = 1? - David A. Corneth, Jun 02 2016
No: gcd(15, a(15)) = 3. - Charles R Greathouse IV, Jun 04 2016
If a(30) is not 0, then it exceeds 5 * 10^12. Terms a(31) through a(34) are 4219, 124522631, 305201, and 6475739899. - Lucas A. Brown, Feb 28 2024
1.1*10^16 < a(30) <= 123676617214883421968465. - Max Alekseyev, Sep 24 2024
PROG
(PARI) a(n)=my(k=2, n2=n^2); while(Mod(n, k*n2-n-1)^(k*n-1)!=1, k++); k \\ Charles R Greathouse IV, Jun 02 2016
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Juri-Stepan Gerasimov, May 29 2016
EXTENSIONS
a(3) corrected by Charles R Greathouse IV, Jun 02 2016
a(6)-a(17) from Charles R Greathouse IV, Jun 04 2016
a(18)-a(29) from Lucas A. Brown, Feb 28 2024
STATUS
approved
