cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-3 of 3 results.

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.

Original entry on oeis.org

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, 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, 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
Offset: 1

Views

Author

Reinhard Zumkeller, Nov 05 2001

Keywords

Crossrefs

Characteristic function of A028260 (positions of 1's). Cf. also A026424 (positions of 0's) and A320655.
One less than A007421.
Cf. also A066829, A353374.

Programs

  • Maple
    A065043 := proc(n)
        if type(numtheory[bigomega](n),'even') then
            1;
        else
            0;
        end if;
    end proc: # R. J. Mathar, Jun 26 2013
  • Mathematica
    Table[(LiouvilleLambda[n]+1)/2,{n,1,20}] (* Enrique Pérez Herrero, Jul 07 2012 *)
  • PARI
    { for (n=1, 1000, a=1 - bigomega(n)%2; write("b065043.txt", n, " ", a) ) } \\ Harry J. Smith, Oct 04 2009
    
  • PARI
    A065043(n) = (1 - (bigomega(n)%2)); \\ Antti Karttunen, Apr 19 2022
    
  • Python
    from operator import ixor
    from functools import reduce
    from sympy import factorint
    def A065043(n): return (reduce(ixor, factorint(n).values(),0)&1)^1 # Chai Wah Wu, Jan 01 2023

Formula

a(n) = 1 - A001222(n) mod 2.
a(n) = A007421(n) - 1.
a(n) = 1 - A066829(n).
a(A028260(k)) = 1 and a(A026424(k)) = 0 for all k.
Dirichlet g.f.: (zeta(s)^2 + zeta(2*s))/(2*zeta(s)). - Enrique Pérez Herrero, Jul 06 2012
a(n) = (A008836(n) + 1)/2. - Enrique Pérez Herrero, Jul 07 2012
a(n) = A001222(2n) mod 2. - Wesley Ivan Hurt, Jun 22 2013
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
From Antti Karttunen, Dec 01 2022: (Start)
For x, y >= 1, a(x*y) = 1 - abs(a(x)-a(y)).
a(n) = a(A046523(n)) = A356163(A003961(n)).
a(n) = A000035(A356163(n)+A347102(n)).
a(n) = A010052(n) + A353669(n).
a(n) = A353555(n) + A353557(n).
a(n) = A358750(n) + A358752(n).
a(n) = A353374(n) + A358775(n).
a(n) >= A356170(n).
(End)

Extensions

Corrected by Charles R Greathouse IV, Sep 02 2009

A353337 Number of ways to write n as a product of the terms of A028260 larger than 1; a(1) = 1 by convention (an empty product).

Original entry on oeis.org

1, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 2, 0, 0, 0, 0, 1, 1, 0, 2, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 3, 0, 1, 1, 2, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 2, 1, 2, 1, 1, 0, 3, 0, 1, 0, 3, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 2, 1, 0, 3, 1, 1, 1, 2, 0, 3, 1, 0, 1, 1, 1, 4, 0, 0, 0, 3, 0, 0, 0, 2, 0
Offset: 1

Views

Author

Antti Karttunen, Apr 17 2022

Keywords

Comments

Number of factorizations of n into factors k > 1 for which there is an even number of primes (when counted with multiplicity, A001222) in their prime factorization.

Examples

			Of the eleven divisors of 96 larger than one, the following: [4, 6, 16, 24, 96] are terms of A028260 because they have an even number of prime factors when counted with repetition. Using them, we can factor 96 in four possible ways, as 96 = 24*4 = 16*6 = 6*4*4, therefore a(96) = 4.
		

Crossrefs

Cf. also A320655, A353377.

Programs

  • PARI
    A065043(n) = (1 - (bigomega(n)%2));
    A353337(n, m=n) = if(1==n, 1, my(s=0); fordiv(n, d, if((d>1)&&(d<=m)&&A065043(d), s += A353337(n/d, d))); (s));

Formula

a(n) = a(A046523(n)). [The sequence depends only on the prime signature of n].
For all n >= 1, a(n) >= A320655(n), and a(n) >= A353377(n).

A353378 Number of ways to write the square of n as a product of the terms of A345452 larger than 1; a(1) = 1 by convention (an empty product).

Original entry on oeis.org

1, 1, 1, 2, 1, 2, 1, 3, 2, 2, 1, 4, 1, 2, 3, 5, 1, 4, 1, 4, 3, 2, 1, 7, 2, 2, 3, 4, 1, 7, 1, 7, 3, 2, 3, 9, 1, 2, 3, 7, 1, 7, 1, 4, 6, 2, 1, 12, 2, 4, 3, 4, 1, 7, 3, 7, 3, 2, 1, 16, 1, 2, 6, 11, 3, 7, 1, 4, 3, 7, 1, 16, 1, 2, 6, 4, 3, 7, 1, 12, 5, 2, 1, 16, 3, 2, 3, 7, 1, 17, 3, 4, 3, 2, 3, 19, 1, 4, 6, 9, 1, 7
Offset: 1

Views

Author

Antti Karttunen, Apr 17 2022

Keywords

Comments

Number of factorizations of n^2 into factors k > 1 for which there is an even number of primes (when counted with multiplicity, A001222) in their prime factorization, and the 2-adic valuation of k (A007814) is also even.

Crossrefs

Programs

Formula

a(n) = A353377(A000290(n)).
For all n >= 1, a(n) <= A353338(n).
Showing 1-3 of 3 results.