OFFSET
1,1
COMMENTS
a(n) is the maximum of row n of A340753.
LINKS
Robert Israel, Table of n, a(n) for n = 1..2000
EXAMPLE
a(3) = 19 because with prime(3)=5, the first primes in each congruence class are 5 == 0 (mod 5), 11 == 1 (mod 5), 2 == 2 (mod 5), 3 == 3 (mod 5), and 19 == 4 (mod 5), and the maximum of these is 19.
MAPLE
g:= proc(p) local S, q;
S:= {$0..p-1};
q:= 1;
while S <> {} do
q:= nextprime(q);
S:= S minus {q mod p};
od;
q
end proc:
seq(g(ithprime(i)), i=1..100);
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Israel, Jan 19 2021
STATUS
approved