OFFSET
1,6
COMMENTS
a(n) = number of nondivisors in the cototient of n, including 1. - Michael De Vlieger, Feb 25 2018
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65537
FORMULA
MATHEMATICA
Table[Count[Range@ n, _?(And[! CoprimeQ[#, n], ! Divisible[n, #]] &)] + 1, {n, 68}] (* or *)
Array[2 + # - (DivisorSigma[0, #] + EulerPhi[#]) &, 68] (* Michael De Vlieger, Feb 25 2018 *)
PROG
(PARI) A046640(n) = (2+n-numdiv(n)-eulerphi(n)); \\ Antti Karttunen, Feb 25 2018, after Charles R Greathouse IV's program for A045763.
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Offset corrected by Antti Karttunen, Feb 25 2018
STATUS
approved