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 April 18 22:18 EDT 2024. Contains 371782 sequences. (Running on oeis4.)