The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A231821 a(n) = mu(n) + 3, where mu is the Mobius function (A008683). 2
4, 2, 2, 3, 2, 4, 2, 3, 3, 4, 2, 3, 2, 4, 4, 3, 2, 3, 2, 3, 4, 4, 2, 3, 3, 4, 3, 3, 2, 2, 2, 3, 4, 4, 4, 3, 2, 4, 4, 3, 2, 2, 2, 3, 3, 4, 2, 3, 3, 3, 4, 3, 2, 3, 4, 3, 4, 4, 2, 3, 2, 4, 3, 3, 4, 2, 2, 3, 4, 2, 2, 3, 2, 4, 3, 3, 4, 2, 2, 3, 3, 4, 2, 3, 4, 4 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
If n is a prime or a semiprime, a(n) gives the number of divisors of n.
LINKS
EXAMPLE
a(6) = 4; mu(6) + 3 = 1 + 3 = 4.
MAPLE
with(numtheory); a:=n->mobius(n)+3; seq(a(n), n=1..100);
MATHEMATICA
Table[MoebiusMu[n] + 3, {n, 100}]
PROG
(PARI) a(n) = moebius(n) + 3; \\ Michel Marcus, Nov 14 2013
(define (A231821 n) (+ 3 (A008683 n))) ;; Antti Karttunen, Jul 26 2017
CROSSREFS
Cf. A228409.
One more than A080847, two more than A007423.
Sequence in context: A037919 A049849 A112349 * A062072 A355849 A140395
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Nov 13 2013
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 June 8 21:00 EDT 2024. Contains 373227 sequences. (Running on oeis4.)