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!)
A087624 a(n)=0 if n is prime, A001221(n) otherwise. 8
0, 0, 0, 1, 0, 2, 0, 1, 1, 2, 0, 2, 0, 2, 2, 1, 0, 2, 0, 2, 2, 2, 0, 2, 1, 2, 1, 2, 0, 3, 0, 1, 2, 2, 2, 2, 0, 2, 2, 2, 0, 3, 0, 2, 2, 2, 0, 2, 1, 2, 2, 2, 0, 2, 2, 2, 2, 2, 0, 3, 0, 2, 2, 1, 2, 3, 0, 2, 2, 3, 0, 2, 0, 2, 2, 2, 2, 3, 0, 2, 1, 2, 0, 3, 2, 2, 2, 2, 0, 3, 2, 2, 2, 2, 2, 2, 0, 2, 2, 2, 0, 3, 0, 2, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,6
COMMENTS
Number of prime divisors of n, but excluding n itself if n is prime.
Number of non-associated primes in the ring Z_n.
Also for n > 1 the number of times n is crossed off in the sieve of Eratosthenes (A000040). - Reinhard Zumkeller, Oct 17 2008
Number of primes that are proper divisors of n. - Omar E. Pol, Dec 27 2008
LINKS
FORMULA
a(n) = A001221(n) * A005171(n). - Jason Kimberley, Nov 19 2014
G.f.: Sum_{k>=1} x^(2*prime(k)) / (1 - x^prime(k)). - Ilya Gutkovskiy, Apr 13 2021
a(n) = omega(n) - c(n), where c = A010051. - Wesley Ivan Hurt, Jun 23 2024
MAPLE
with(numtheory); f:=proc(n) if isprime(n) then nops(factorset(n))-1 else nops(factorset(n)) fi; end;
MATHEMATICA
Array[If[PrimeQ[#], 0, PrimeNu[#]]&, 110] (* Harvey P. Dale, Mar 27 2013 *)
PROG
(Haskell)
a087624 n = if a010051 n == 1 then 0 else a001221 n
-- Reinhard Zumkeller, Apr 05 2013
(PARI) a(n) = if (isprime(n), 0, omega(n)); \\ Michel Marcus, Nov 06 2022
CROSSREFS
A144489 gives partial sums.
Sequence in context: A084927 A333750 A072670 * A294891 A294879 A085122
KEYWORD
nonn,easy
AUTHOR
Michele Dondi (bik.mido(AT)tiscalinet.it), Sep 14 2003
EXTENSIONS
Edited by N. J. A. Sloane, Dec 11 2008
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 August 9 11:50 EDT 2024. Contains 375042 sequences. (Running on oeis4.)