login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
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
Sequence in context: A131097 A218666 A062790 * A347101 A240388 A049823
KEYWORD
nonn
AUTHOR
EXTENSIONS
Offset corrected by Antti Karttunen, Feb 25 2018
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 9 21:06 EDT 2024. Contains 375765 sequences. (Running on oeis4.)