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!)
A205745 a(n) = card { d | d*p = n, d odd, p prime } 5

%I #28 Feb 24 2020 15:37:38

%S 0,1,1,0,1,1,1,0,1,1,1,0,1,1,2,0,1,1,1,0,2,1,1,0,1,1,1,0,1,1,1,0,2,1,

%T 2,0,1,1,2,0,1,1,1,0,2,1,1,0,1,1,2,0,1,1,2,0,2,1,1,0,1,1,2,0,2,1,1,0,

%U 2,1,1,0,1,1,2,0,2,1,1,0,1,1,1,0,2,1,2

%N a(n) = card { d | d*p = n, d odd, p prime }

%C Equivalently, a(n) is the number of prime divisors p|n such that n/p is odd. - _Gus Wiseman_, Jun 06 2018

%H Charles R Greathouse IV, <a href="/A205745/b205745.txt">Table of n, a(n) for n = 1..10000</a>

%F O.g.f.: Sum_{p prime} x^p/(1 - x^(2p)). - _Gus Wiseman_, Jun 06 2018

%t a[n_] := Sum[ Boole[ OddQ[d] && PrimeQ[n/d] ], {d, Divisors[n]} ]; Table[a[n], {n, 1, 100}] (* _Jean-François Alcover_, Jun 27 2013 *)

%o (Sage)

%o def A205745(n):

%o return sum((n//d) % 2 for d in divisors(n) if is_prime(d))

%o [A205745(n) for n in (1..105)]

%o (PARI) a(n)=if(n%2,omega(n),n%4/2) \\ _Charles R Greathouse IV_, Jan 30 2012

%o (Haskell)

%o a205745 n = sum $ map ((`mod` 2) . (n `div`))

%o [p | p <- takeWhile (<= n) a000040_list, n `mod` p == 0]

%o -- _Reinhard Zumkeller_, Jan 31 2012

%Y Cf. A000005, A000607, A001221, A008683, A010051, A068050, A083399, A088705, A106404, A305614.

%K nonn

%O 1,15

%A _Peter Luschny_, Jan 30 2012

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 6 09:03 EDT 2024. Contains 373119 sequences. (Running on oeis4.)