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-5 of 5 results.

A366902 The number of exponentially evil divisors of n.

Original entry on oeis.org

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

Views

Author

Amiram Eldar, Oct 27 2023

Keywords

Comments

First differs from A050361 at n = 128.
The number of divisors of n that are exponentially evil numbers (A262675), i.e., numbers having only evil (A001969) exponents in their canonical prime factorization.
The sum of these divisors is A366904(n) and the largest of them is A366906(n).

Crossrefs

Programs

  • Mathematica
    f[p_, e_] := Floor[e/2] + If[OddQ[e] || OddQ[DigitCount[e + 1, 2, 1]], 1, 0]; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100]
  • PARI
    s(n) = n\2 + (n%2 || hammingweight(n+1)%2); \\ after Charles R Greathouse IV at A159481
    a(n) = vecprod(apply(x -> s(x), factor(n)[, 2]));

Formula

Multiplicative with a(p^e) = A159481(e).
a(n) >= 1, with equality if and only if n is a cubefree number (A004709).
Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = Product_{p prime} Sum_{k>=1} 1/p^A262675(k) = 1.241359937856... .

A366906 The largest exponentially evil divisor of n.

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 8, 1, 1, 1, 1, 1, 1, 1, 8, 1, 1, 1, 1, 1, 1, 1, 8, 1, 1, 27, 1, 1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 8, 1, 1, 1, 1, 1, 1, 1, 8, 1, 1, 1, 1, 1, 27, 1, 8, 1, 1, 1, 1, 1, 1, 1, 64, 1, 1, 1, 1, 1, 1, 1, 8, 1, 1, 1, 1, 1, 1, 1, 8, 27, 1, 1, 1, 1, 1
Offset: 1

Views

Author

Amiram Eldar, Oct 27 2023

Keywords

Comments

The largest divisor of n that is an exponentially evil number (A262675).
The number of exponentially evil divisors of n is A366902(n) and their sum is A366904(n).

Crossrefs

Similar sequences: A353897, A365683, A366905.

Programs

  • Mathematica
    maxEvil[e_] := Module[{k = e}, While[OddQ[DigitCount[k, 2, 1]], k--]; k]; f[p_, e_] := p^maxEvil[e]; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100]
  • PARI
    s(n) = {my(k = n); while(hammingweight(k)%2, k--); k;}
    a(n) = {my(f = factor(n)); prod(i = 1, #f~, f[i, 1]^s(f[i, 2]));}

Formula

Multiplicative with a(p^e) = p^max{k=1..e, k evil}.
a(n) <= n, with equality if and only if n is exponentially evil number (A262675).
a(n) >= 1, with equality if and only if n is a cubefree number (A004709).

A366903 The sum of exponentially odious divisors of n.

Original entry on oeis.org

1, 3, 4, 7, 6, 12, 8, 7, 13, 18, 12, 28, 14, 24, 24, 23, 18, 39, 20, 42, 32, 36, 24, 28, 31, 42, 13, 56, 30, 72, 32, 23, 48, 54, 48, 91, 38, 60, 56, 42, 42, 96, 44, 84, 78, 72, 48, 92, 57, 93, 72, 98, 54, 39, 72, 56, 80, 90, 60, 168, 62, 96, 104, 23, 84, 144, 68
Offset: 1

Views

Author

Amiram Eldar, Oct 27 2023

Keywords

Comments

First differs from A353900 at n = 128.
The number of these divisors is A366901(n) and the largest of them is A366905(n).

Crossrefs

Similar sequences: A353900, A365682, A366904.

Programs

  • Mathematica
    f[p_, e_] := 1 + Total[p^Select[Range[e], OddQ[DigitCount[#, 2, 1]] &]]; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100]
  • PARI
    a(n) = {my(f = factor(n)); prod(i = 1, #f~, 1 + sum(k = 1, f[i, 2], (hammingweight(k)%2) * f[i, 1]^k));}

Formula

Multiplicative with a(p^e) = 1 + Sum_{k = 1..e, k is odious} p^k.
a(n) <= A000203(n), with equality if and only if n is a cubefree number (A004709).
Sum_{k=1..n} a(k) ~ c * n^2, where c = (1/2) * Product_{p prime} (1-1/p)*(1 + Sum_{k>=1} a(p^k)/p^(2*k)) = 0.721190607... .

A367513 The exponentially evil part of n: the largest unitary divisor of n that is an exponentially evil number (A262675).

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8, 1, 1, 27, 1, 1, 1, 1, 32, 1, 1, 1, 1, 1, 1, 1, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 27, 1, 8, 1, 1, 1, 1, 1, 1, 1, 64, 1, 1, 1, 1, 1, 1, 1, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
Offset: 1

Views

Author

Amiram Eldar, Nov 21 2023

Keywords

Crossrefs

Programs

  • Mathematica
    f[p_, e_] := p^(e * (1 - ThueMorse[e])); a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100]
  • PARI
    a(n) = {my(f = factor(n)); prod(i = 1, #f~, if(hammingweight(f[i, 2])%2, 1, f[i, 1]^f[i, 2]));}
    
  • Python
    from math import prod
    from sympy import factorint
    def A367513(n): return prod(p**e for p, e in factorint(n).items() if e.bit_count()&1^1) # Chai Wah Wu, Nov 23 2023

Formula

Multiplicative with a(p^e) = p^(e*A010059(e)) = p^A102391(e).
a(n) = n/A367514(n).
A001221(a(n)) = A367512(n).
A034444(a(n)) = A367516(n).
a(n) >= 1, with equality if and only if n is an exponentially odious number (A270428).
a(n) <= n, with equality if and only if n is an exponentially evil number (A262675).

A370240 The sum of divisors of n that are cubes of squarefree numbers.

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 9, 1, 1, 1, 1, 1, 1, 1, 9, 1, 1, 1, 1, 1, 1, 1, 9, 1, 1, 28, 1, 1, 1, 1, 9, 1, 1, 1, 1, 1, 1, 1, 9, 1, 1, 1, 1, 1, 1, 1, 9, 1, 1, 1, 1, 1, 28, 1, 9, 1, 1, 1, 1, 1, 1, 1, 9, 1, 1, 1, 1, 1, 1, 1, 9, 1, 1, 1, 1, 1, 1, 1, 9, 28, 1, 1, 1, 1, 1
Offset: 1

Views

Author

Amiram Eldar, Feb 13 2024

Keywords

Comments

First differs from A366904 at n = 32, and from A113061 at n = 64.

Crossrefs

Programs

  • Mathematica
    f[p_, e_] := If[e <= 2, 1, 1 + p^3]; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100]
  • PARI
    a(n) = {my(f = factor(n)); prod(i = 1, #f~, if(f[i,2] <= 2, 1, 1 + f[i,1]^3));}

Formula

Multiplicative with a(p^e) = 1 for e <= 2, and a(p^e) = 1 + p^3 for e >= 3.
Dirichlet g.f.: zeta(s)*zeta(3*s-3)/zeta(6*s-6).
Sum_{k=1..n} a(k) ~ c * n^(4/3) + n, where c = 3*zeta(4/3)/(2*Pi^2) = 0.5472769126... .
Showing 1-5 of 5 results.