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”).

A067335
Numbers k such that prime(k+1)-(k+1)*tau(k+1) = prime(k-1)-(k-1)*tau(k-1) where tau(k) = A000005(k) is the number of divisors of k.
5
202, 216, 471, 583, 816, 850, 894, 905, 922, 1277, 1335, 1386, 1594, 1712, 1774, 1942, 1958, 2554, 2760, 2777, 2840, 2876, 2934, 2944, 3132, 3438, 3566, 3694, 3900, 3980, 4013, 4188, 4342, 4352, 4526, 4594, 4627, 4686, 4808, 5268, 5730, 6032, 6326
OFFSET
1,1
LINKS
MATHEMATICA
f[n_] := f[n] = Prime[n] - n * DivisorSigma[0, n]; Select[Range[2, 6500], f[#+1] == f[#-1] &] (* Amiram Eldar, Apr 08 2024 *)
PROG
(PARI) f(n) = prime(n) - n * numdiv(n);
is(n) = n > 1 && f(n+1) == f(n-1); \\ Amiram Eldar, Apr 08 2024
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Benoit Cloitre, Feb 24 2002
STATUS
approved