OFFSET
1,1
LINKS
Max Alekseyev, Table of n, a(n) for n = 1..38
PROG
(PARI) a(n) = my(v=[prime(n)]); while(#v < 8, v=concat(v, nextprime(v[#v]+1))); for(b=2, oo, for(k=1, #v, if(Mod(b, v[k]^2)^(v[k]-1)!=1, break, if(k==#v, return(b)))))
CROSSREFS
KEYWORD
nonn,hard
AUTHOR
Felix Fröhlich, May 29 2021
EXTENSIONS
Terms a(5) onward from Max Alekseyev, Oct 10 2023
STATUS
approved