OFFSET
2,1
COMMENTS
a(n) is the smallest composite k such that b^(k-1) == 1 (mod (b-1)k) for every b = 2, 3, 4, ..., n. For more comments, see A083876 and A300629. - Max Alekseyev and Thomas Ordowski, Apr 29 2018
PROG
(PARI) a(n) = forcomposite(c=1, , my(i=0); for(b=2, n, if(Mod(b, c)^(c-1)==1, i++)); if(i==n-1, return(c)));
CROSSREFS
KEYWORD
nonn
AUTHOR
Felix Fröhlich, Apr 02 2016
EXTENSIONS
Edited by Thomas Ordowski, Apr 29 2018
Corrected a typo within the initial terms by Jens Ahlström, Apr 23 2024
STATUS
approved