OFFSET
1,1
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
Ramachandran Balasubramanian, Olivier Ramaré, and Priyamvad Srivastav, Product of three primes in large arithmetic progressions, arXiv:2208.04031 [math.NT], 2022.
FORMULA
A result of Balasubramanian, Ramaré, & Srivastav proves that a(n) < n^e for each e > 9/2 and large enough n depending on e.
EXAMPLE
The least product of 3 primes = 1 mod 3 is 28, while the least = 2 mod 3 is 8, so a(2) = 28.
PROG
(PARI) firstTri(m)=my(mod=m.mod); forprime(p=2, , if(mod%p==0, next); forprime(q=2, p, if(mod%q==0, next); forprimestep(r=2, q, m/p/q, return(p*q*r))))
a(n)=my(r=8); for(k=1, n-1, if(gcd(k, n)>1, next); r=max(firstTri(Mod(k, n)), r)); r
CROSSREFS
KEYWORD
nonn
AUTHOR
Charles R Greathouse IV, Jan 18 2023
EXTENSIONS
Corrected by Charles R Greathouse IV, May 10 2023
STATUS
approved