login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons 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

Antti Karttunen, Table of n, a(n) for n = 1..65537

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

Cf. A000005, A000010, A045763.

Sequence in context: A131097 A218666 A062790 * A240388 A049823 A143775

Adjacent sequences:  A046637 A046638 A046639 * A046641 A046642 A046643

KEYWORD

nonn

AUTHOR

N. J. A. Sloane

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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified February 23 00:28 EST 2020. Contains 332157 sequences. (Running on oeis4.)