OFFSET
1,1
COMMENTS
This is simply the smallest inverse to A082467. Note that A082467 has offset 4. - N. J. A. Sloane, Jan 15 2020
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..1000
MATHEMATICA
f[n_] := Block[{k}, If[ OddQ[n], k = 2, k = 1]; While[ !PrimeQ[n - k] || !PrimeQ[n + k], k += 2]; k]; t = Table[ f[n], {n, 4, 2600}]; u = Table[0, {60}]; Do[a = t[[n]]; If[a < 61 && u[[a]] == 0, u[[a]] = n + 3], {n, 2597}]; u
PROG
(PARI) a082467(n) = my(k=1); while(isprime(n-k)*isprime(n+k) == 0, k++); k;
a(n) = my(k=4); while (a082467(k) != n, k++); k; \\ Michel Marcus, Feb 12 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre and Robert G. Wilson v, Mar 28 2005
EXTENSIONS
Definition corrected by Giovanni Resta. - N. J. A. Sloane, Jan 15 2020
STATUS
approved