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

A333101
Numbers k such that both k and k + 2 are noncototients (A005278).
2
50, 170, 266, 290, 344, 518, 532, 534, 650, 686, 722, 730, 872, 962, 1036, 1158, 1166, 1332, 1394, 1462, 1464, 1586, 1634, 1682, 1804, 1864, 1922, 1946, 1970, 2034, 2072, 2074, 2116, 2134, 2262, 2314, 2316, 2318, 2330, 2420, 2534, 2598, 2666, 2668, 2772, 2822
OFFSET
1,1
LINKS
Eric Weisstein's World of Mathematics, Noncototient.
Wikipedia, Noncototient.
EXAMPLE
50 is a term since both 50 and 52 are noncototients.
MATHEMATICA
nmax = 3000; cototientQ[n_?EvenQ] := (x = n; While[test = x - EulerPhi[x] == n ; Not[test || x > 2*nmax], x++]; test); cototientQ[n_?OddQ] = True; nonc = Select[Range[nmax], !cototientQ[#]&]; nonc[[Flatten[Position[Differences[nonc], 2]]]] (* after Jean-François Alcover at A005278 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Amiram Eldar, Mar 07 2020
STATUS
approved