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!)
A065043 Characteristic function of the numbers with an even number of prime factors (counted with multiplicity): a(n) = 1 if n = A028260(k) for some k then 1 else 0. 40

%I #59 Jan 31 2024 08:44:49

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

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

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

%N Characteristic function of the numbers with an even number of prime factors (counted with multiplicity): a(n) = 1 if n = A028260(k) for some k then 1 else 0.

%H Antti Karttunen, <a href="/A065043/b065043.txt">Table of n, a(n) for n = 1..65537</a> (first 1000 terms from Harry J. Smith)

%H <a href="/index/Ch#char_fns">Index entries for characteristic functions</a>

%H <a href="/index/Eu#epf">Index entries for sequences computed from exponents in factorization of n</a>

%F a(n) = 1 - A001222(n) mod 2.

%F a(n) = A007421(n) - 1.

%F a(n) = 1 - A066829(n).

%F a(A028260(k)) = 1 and a(A026424(k)) = 0 for all k.

%F Dirichlet g.f.: (zeta(s)^2 + zeta(2*s))/(2*zeta(s)). - _Enrique Pérez Herrero_, Jul 06 2012

%F a(n) = (A008836(n) + 1)/2. - _Enrique Pérez Herrero_, Jul 07 2012

%F a(n) = A001222(2n) mod 2. - _Wesley Ivan Hurt_, Jun 22 2013

%F G.f.: Sum_{n>=1} a(n)*x^n/(1 - x^n) = Sum_{n>=1} x^(n^2)/(1 - x^n). - _Ilya Gutkovskiy_, Apr 25 2017

%F From _Antti Karttunen_, Dec 01 2022: (Start)

%F For x, y >= 1, a(x*y) = 1 - abs(a(x)-a(y)).

%F a(n) = a(A046523(n)) = A356163(A003961(n)).

%F a(n) = A000035(A356163(n)+A347102(n)).

%F a(n) = A010052(n) + A353669(n).

%F a(n) = A353555(n) + A353557(n).

%F a(n) = A358750(n) + A358752(n).

%F a(n) = A353374(n) + A358775(n).

%F a(n) >= A356170(n).

%F (End)

%p A065043 := proc(n)

%p if type(numtheory[bigomega](n),'even') then

%p 1;

%p else

%p 0;

%p end if;

%p end proc: # _R. J. Mathar_, Jun 26 2013

%t Table[(LiouvilleLambda[n]+1)/2,{n,1,20}] (* _Enrique Pérez Herrero_, Jul 07 2012 *)

%o (PARI) { for (n=1, 1000, a=1 - bigomega(n)%2; write("b065043.txt", n, " ", a) ) } \\ _Harry J. Smith_, Oct 04 2009

%o (PARI) A065043(n) = (1 - (bigomega(n)%2)); \\ _Antti Karttunen_, Apr 19 2022

%o (Python)

%o from operator import ixor

%o from functools import reduce

%o from sympy import factorint

%o def A065043(n): return (reduce(ixor, factorint(n).values(),0)&1)^1 # _Chai Wah Wu_, Jan 01 2023

%Y Characteristic function of A028260 (positions of 1's). Cf. also A026424 (positions of 0's) and A320655.

%Y One less than A007421.

%Y Cf. A003961, A008836, A010052, A038548 (inverse Möbius transform), A046523, A055037 (partial sums), A343784, A347102, A353337, A353338, A353555, A353557, A353629, A353669, A358750, A358752, A353374, A358775, A356163, A356170.

%Y Cf. also A066829, A353374.

%K nonn

%O 1,1

%A _Reinhard Zumkeller_, Nov 05 2001

%E Corrected by _Charles R Greathouse IV_, Sep 02 2009

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 May 13 09:49 EDT 2024. Contains 372504 sequences. (Running on oeis4.)