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.

A382291 a(n) = A037445(n)/A034444(n).

Original entry on oeis.org

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

Views

Author

Amiram Eldar, Mar 21 2025

Keywords

Comments

First differs from A368168 at n = 64, and from A359411, A367516 and A368979 at n = 128.

Crossrefs

Programs

  • Mathematica
    f[p_, e_] := 2^(DigitCount[e, 2, 1] - 1); a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 105]
  • PARI
    a(n) = vecprod(apply(x -> 1 << (hammingweight(x)-1), factor(n)[, 2]));

Formula

a(n) = 2^A382290(n).
Multiplicative with a(p^e) = 2^(A000120(e)-1) = A048896(e-1) (= A243036(e) for e >= 2).
a(n) >= 1, with equality if and only if n is in A138302.
a(n) = 2 if and only if n is in A382292.