OFFSET
1,2
COMMENTS
a(n) is the greatest k such that there exists d > 0 such that A001358(n) - j*d is in A001358 for j = 0 .. k-1.
Conjectures: a(n) >= 3 for n >= 16.
Limit_{n -> oo} a(n) = oo.
If A001358(n) is divisible by A000040(m), then a(n) >= A373888(m). In particular, the conjectures above are implied by the corresponding conjectures for A373888. - Robert Israel, Aug 19 2024
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(5) = 3 because the 5th semiprime is A001358(5) = 14 and there is an arithmetic progression of 3 semiprimes ending in 14, namely 4, 9, 14, and no such arithmetic progression of 4 semiprimes.
MAPLE
S:= select(t -> numtheory:-bigomega(t)=2, [$1..10^5]):
f:= proc(n) local s, i, m, d, j;
m:= 1;
s:= S[n];
for i from n-1 to 1 by -1 do
d:= s - S[i];
if s - m*d < 4 then return m fi;
for j from 2 while ListTools:-BinarySearch(S, s-j*d) <> 0 do od;
m:= max(m, j);
od;
m;
end proc:
map(f, [$1..100]);
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Israel, Aug 10 2024
STATUS
approved