[go: up one dir, main page]

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!)
A351394 Number of divisors of n that are either squarefree, prime powers, or both. 1
1, 2, 2, 3, 2, 4, 2, 4, 3, 4, 2, 5, 2, 4, 4, 5, 2, 5, 2, 5, 4, 4, 2, 6, 3, 4, 4, 5, 2, 8, 2, 6, 4, 4, 4, 6, 2, 4, 4, 6, 2, 8, 2, 5, 5, 4, 2, 7, 3, 5, 4, 5, 2, 6, 4, 6, 4, 4, 2, 9, 2, 4, 5, 7, 4, 8, 2, 5, 4, 8, 2, 7, 2, 4, 5, 5, 4, 8, 2, 7, 5, 4, 2, 9, 4, 4, 4, 6, 2, 9, 4, 5, 4, 4, 4 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
a(n) = Sum_{d|n} sign(mu(d)^2 + [omega(d) = 1]).
a(n) = Sum_{d|n} (mu(d)^2 + [omega(d) = 1]*(1 - mu(d)^2)).
a(n) = A048105(n) + A046660(n). - Amiram Eldar, Oct 06 2023
EXAMPLE
a(36) = 6; 36 has 4 squarefree divisors 1,2,3,6 (where the primes 2 and 3 are both squarefree and 1st powers of primes) and 2 (additional) divisors that are powers of primes, 2^2 and 3^2.
MATHEMATICA
a[n_] := Module[{e = FactorInteger[n][[;; , 2]], nu, omega}, nu = Length[e]; omega = Total[e]; 2^nu + omega - nu]; a[1] = 1; Array[a, 100] (* Amiram Eldar, Oct 06 2023 *)
PROG
(PARI) a(n) = {my(f = factor(n), nu = omega(f), om = bigomega(f)); 2^nu + om - nu; } \\ Amiram Eldar, Oct 06 2023
CROSSREFS
Cf. Similar to A327527.
Sequence in context: A289872 A301855 A080256 * A327527 A337454 A289849
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Feb 09 2022
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 29 09:16 EDT 2024. Contains 375511 sequences. (Running on oeis4.)