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

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
OFFSET
1,1
COMMENTS
If n is a prime or a semiprime, a(n) gives the number of divisors of n.
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
(Scheme)
(define (A231821 n) (+ 3 (A008683 n))) ;; Antti Karttunen, Jul 26 2017
CROSSREFS
One more than A080847, two more than A007423.
Sequence in context: A049849 A376129 A112349 * A062072 A355849 A140395
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Nov 13 2013
STATUS
approved