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.

A286779 Multiplicative with a(p^e) = 2e^2 + 2.

Original entry on oeis.org

1, 4, 4, 10, 4, 16, 4, 20, 10, 16, 4, 40, 4, 16, 16, 34, 4, 40, 4, 40, 16, 16, 4, 80, 10, 16, 20, 40, 4, 64, 4, 52, 16, 16, 16, 100, 4, 16, 16, 80, 4, 64, 4, 40, 40, 16, 4, 136, 10, 40, 16, 40, 4, 80, 16, 80, 16, 16, 4, 160, 4, 16, 40, 74, 16, 64, 4, 40, 16
Offset: 1

Views

Author

Keywords

Comments

If n is odd, then a(n) is the number of non-isomorphic generalized quaternion rings over Z_n.

Programs

  • Maple
    a:= n-> mul(2*i[2]^2+2, i=ifactors(n)[2]):
    seq(a(n), n=1..100);  # Alois P. Heinz, Jul 07 2017
  • Mathematica
    fa[n_] := fa[n] = FactorInteger[n]; phi[1] = 1; phi[p_, s_] := 2s^2 + 2;
    phi[n_] := Product[phi[fa[n][[i, 1]], fa[n][[i, 2]]], {i, Length[fa[n]]}];
    Table[phi[n], {n, 1, 44}]
  • PARI
    a(n)=my(f=factor(n)[,2]); prod(i=1,#f, 2*f[i]^2+2) \\ Charles R Greathouse IV, Jul 07 2017

Formula

Dirichlet g.f.: zeta(s)^4 / zeta(4*s). - Werner Schulte, Oct 27 2022