login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A280023
Least k such that A002375(k) = A002375(k+n), or 0 if no such k exists.
1
1, 4, 3, 5, 5, 8, 7, 8, 5, 9, 5, 7, 13, 5, 11, 12, 11, 13, 12, 11, 23, 18, 17, 10, 9, 8, 7, 18, 5, 32, 36, 29, 31, 15, 27, 13, 12, 11, 35, 21, 27, 22, 18, 17, 37, 54, 27, 56, 15, 24, 13, 12, 11, 60, 21, 30, 37, 18, 17, 56, 30, 32, 105, 39, 39, 58, 27, 48, 55, 24, 53, 85, 33, 39, 71, 30, 39, 130, 42, 45, 100, 45, 56, 85, 66, 42, 105, 36, 45, 109, 33, 54, 70, 30, 51, 98, 39, 65, 67, 39, 57, 97, 51
OFFSET
1,2
EXAMPLE
a(2) = 4 because smallest k such that A002375(k) = A002375(k+2) is 4; A002375(4) = A002375(6) = 1.
PROG
(PARI) a002375(n) = sum(i=2, primepi(n), isprime(2*n - prime(i)));
a(n) = my(k=1); while (a002375(n+k) != a002375(k), k++); k;
CROSSREFS
Cf. A002375.
Sequence in context: A368595 A270649 A049008 * A170816 A336067 A133981
KEYWORD
nonn
AUTHOR
Altug Alkan, Feb 22 2017
STATUS
approved