OFFSET
1,3
COMMENTS
Equivalently: Let i, i+d, i+2d, ..., i+(n-1)d be an arithmetic progression of exactly n primes; choose the one which minimizes the last term; then a(n) = common difference d.
The word "exactly" requires both i-d and i+n*d to be nonprime; without "exactly", we get A093364.
For the corresponding values of the first term and the last term, see respectively A354377 and A354376. For the actual arithmetic progressions, see A354485.
The primes in these arithmetic progressions need not be consecutive. (The smallest prime at the start of a run of exactly n consecutive primes in arithmetic progression is A006560(n).)
REFERENCES
Richard K. Guy, Unsolved Problems in Number Theory, 3rd Edition, Springer, 2004, Section A5, Arithmetic progressions of primes, pp. 25-28.
EXAMPLE
The first few corresponding arithmetic progressions are:
d = 0: (2);
d = 1: (2, 3);
d = 2: (3, 5, 7);
d = 12: (7, 19, 31, 43);
d = 6: (5, 11, 17, 23, 29);
d = 30: (7, 37, 67, 97, 127, 157);
d = 150: (7, 157, 307, 457, 607, 757, 907).
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Bernard Schott, May 28 2022
EXTENSIONS
STATUS
approved