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

A367932 a(n) is the smallest number k such that k*n is an exponentially evil number (A262675).

Original entry on oeis.org

1, 4, 9, 2, 25, 36, 49, 1, 3, 100, 121, 18, 169, 196, 225, 2, 289, 12, 361, 50, 441, 484, 529, 9, 5, 676, 1, 98, 841, 900, 961, 1, 1089, 1156, 1225, 6, 1369, 1444, 1521, 25, 1681, 1764, 1849, 242, 75, 2116, 2209, 18, 7, 20, 2601, 338, 2809, 4, 3025, 49, 3249, 3364
Offset: 1

Views

Author

Amiram Eldar, Dec 05 2023

Keywords

Comments

First differs from A365298 at n = 64.

Crossrefs

Similar sequences: A365298, A365685, A367931.

Programs

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

Formula

Multiplicative with a(p^e) = p^s(e), s(e) = min{k >= e, k is evil} - e.
a(n) = A367934(n)/n.
a(n) >= 1, with equality if and only if n is an exponentially evil number (A262675).
Sum_{k=1..n} a(k) ~ c * n^3 / 3, where c = Product_{p prime} f(1/p) = 0.623746285..., where f(x) = (1-x) * (1 + Sum_{k>=1} x^(3*k-s(k))), and s(k) is defined above.

A367933 a(n) is the smallest multiple of n that is an exponentially odious number (A270428).

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 16, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 48, 25, 26, 81, 28, 29, 30, 31, 128, 33, 34, 35, 36, 37, 38, 39, 80, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 162, 55, 112, 57, 58, 59, 60, 61, 62, 63, 128, 65, 66, 67
Offset: 1

Views

Author

Amiram Eldar, Dec 05 2023

Keywords

Crossrefs

Similar sequences: A356192, A365684, A367934.

Programs

  • Mathematica
    f[p_, e_] := Module[{k = e}, While[! OddQ[DigitCount[k, 2 ,1]], k++]; p^k]; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100]
  • PARI
    s(e) = {my(k = e); 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^s(e), s(e) = min{k >= e, k is odious}.
a(n) = n * A367931(n).
a(n) >= n, with equality if and only if n is an exponentially odious number (A209061).
Sum_{k=1..n} a(k) ~ c * n^2 / 2, where c = Product_{p prime} f(1/p) = 1.30023300... , where f(x) = (1-x) * (1 + Sum_{k>=1} x^(2*k-s(k))), and s(k) is defined above.
Showing 1-2 of 2 results.