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.

A166642 Totally multiplicative sequence with a(p) = 2*(p+1) for prime p.

Original entry on oeis.org

1, 6, 8, 36, 12, 48, 16, 216, 64, 72, 24, 288, 28, 96, 96, 1296, 36, 384, 40, 432, 128, 144, 48, 1728, 144, 168, 512, 576, 60, 576, 64, 7776, 192, 216, 192, 2304, 76, 240, 224, 2592, 84, 768, 88, 864, 768, 288, 96, 10368, 256, 864
Offset: 1

Views

Author

Jaroslav Krizek, Oct 18 2009

Keywords

Crossrefs

Programs

  • Mathematica
    a[1] = 1; a[n_] := (fi = FactorInteger[n]; Times @@ ((fi[[All, 1]] + 1)^fi[[All, 2]])); Table[a[n]*2^(PrimeOmega[n]), {n, 1, 100}] (* G. C. Greubel, May 20 2016 *)
    f[p_, e_] := (2*(p+1))^e; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Oct 18 2023 *)

Formula

Multiplicative with a(p^e) = (2*(p+1))^e. If n = Product p(k)^e(k) then a(n) = Product (2*(p(k)+1))^e(k).
a(n) = A061142(n) * A003959(n) = 2^bigomega(n) * A003959(n) = 2^A001222(n) * A003959(n).