login
A007354
Where the prime race among 7k+1, ..., 7k+6 changes leader.
(Formerly M2101)
9
2, 17, 131, 227, 733, 829, 929, 997, 1097, 1123, 1237, 1277, 1447, 1487, 1531, 1627, 1811, 1907, 1993, 2141, 2203, 2267, 2441, 2677, 2707, 3209, 3299, 3433, 3547, 3853, 4003, 4021, 4507, 4679, 4787, 4931, 5081, 5113, 7537, 7577, 7649, 7759, 7817, 8039, 8461, 8543
OFFSET
1,1
REFERENCES
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
PROG
(PARI) primerace(mod, limit)={my(v=vector(mod), vm=0, ivm=0, imv); forprime(p=2, limit, my(m=p%mod); v[m+1]++; v[m+1]++; my(mv=vecmax(v, &imv)); if(mv>vm, if(imv!=ivm, print1(p, ", "); ivm=imv); vm=mv))};
primerace(7, 8600) \\ Hugo Pfoertner, Jul 25 2021
KEYWORD
nonn
STATUS
approved