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

A046640
a(n) = A045763(n) + 1.
1
1, 1, 1, 1, 1, 2, 1, 2, 2, 4, 1, 4, 1, 6, 5, 5, 1, 8, 1, 8, 7, 10, 1, 10, 4, 12, 7, 12, 1, 16, 1, 12, 11, 16, 9, 17, 1, 18, 13, 18, 1, 24, 1, 20, 17, 22, 1, 24, 6, 26, 17, 24, 1, 30, 13, 26, 19, 28, 1, 34, 1, 30, 23, 27, 15, 40, 1, 32
OFFSET
1,6
COMMENTS
a(n) = number of nondivisors in the cototient of n, including 1. - Michael De Vlieger, Feb 25 2018
LINKS
FORMULA
a(n) = 2 + n - A000005(n) - A000010(n). - Antti Karttunen, Feb 25 2018
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
EXTENSIONS
Offset corrected by Antti Karttunen, Feb 25 2018
STATUS
approved