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

A378642
Number of numbers m <= n such that phi(m) does not divide n, where phi is the Euler totient function (A000010).
4
0, 0, 1, 0, 3, 1, 5, 1, 7, 5, 9, 1, 11, 9, 13, 5, 15, 9, 17, 10, 19, 17, 21, 5, 23, 21, 25, 19, 27, 19, 29, 16, 31, 29, 33, 16, 35, 33, 37, 22, 39, 33, 41, 34, 43, 41, 45, 16, 47, 43, 49, 43, 51, 41, 53, 41, 55, 53, 57, 34, 59, 57, 61, 42, 63, 55, 65, 59, 67, 63
OFFSET
1,5
FORMULA
a(n) = n - A069932(n).
MATHEMATICA
Table[Count[Divisible[n, #[[;; n]]], False], {n, Length[#]}] & [EulerPhi[Range[100]]]
PROG
(PARI) a(n) = n - sumdiv(n, d, #select(x -> x<=n, invphi(d))); \\ Amiram Eldar, Dec 10 2024, using Max Alekseyev's invphi.gp
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paolo Xausa, Dec 05 2024
STATUS
approved