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

A003966 Möbius transform of A003958.

Original entry on oeis.org

1, 0, 1, 0, 3, 0, 5, 0, 2, 0, 9, 0, 11, 0, 3, 0, 15, 0, 17, 0, 5, 0, 21, 0, 12, 0, 4, 0, 27, 0, 29, 0, 9, 0, 15, 0, 35, 0, 11, 0, 39, 0, 41, 0, 6, 0, 45, 0, 30, 0, 15, 0, 51, 0, 27, 0, 17, 0, 57, 0, 59, 0, 10, 0, 33, 0, 65, 0, 21, 0, 69, 0, 71, 0, 12, 0, 45, 0, 77, 0, 8, 0, 81, 0, 45, 0, 27, 0, 87, 0, 55, 0, 29, 0, 51, 0, 95, 0, 18
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Maple
    A003966 := proc(n) option remember; local pf,p ; if n = 1 then 1; else pf := ifactors(n)[2] ; if nops(pf) = 1 then p := op(1,pf) ; (op(1,p)-2)*(op(1,p)-1)^(op(2,p)-1)  ; else mul(procname(op(1,p)^op(2,p)),p=pf) ; end if; end if; end proc:
    seq(A003966(n),n=1..100) ; # R. J. Mathar, Jan 07 2011
  • Mathematica
    f[p_, e_] := (p - 2) (p - 1)^(e - 1); a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Oct 23 2022 *)
  • PARI
    a(n) = {my(f=factor(n)); for (i=1, #f~, p = f[i, 1]; f[i, 1] = (p-2)*(p-1)^(f[i,2]-1); f[i, 2] = 1); factorback(f);} \\ Michel Marcus, Feb 27 2015
    
  • PARI
    A003958(n) = my(f = factor(n)); for (i=1, #f~, f[i, 1]--); factorback(f);
    A003966(n) = sumdiv(n,d,moebius(n/d)*A003958(d)); \\ Antti Karttunen, Oct 24 2018
    
  • PARI
    for(n=1, 100, print1(direuler(p=2, n, 1/(1-p*X+X)*(1-X))[n], ", ")) \\ Vaclav Kotesovec, Feb 11 2023

Formula

Multiplicative with a(p^e) = (p-2)(p-1)^(e-1). - David W. Wilson, Sep 01 2001
Dirichlet inverse b(n) is multiplicative with b(p^e) = 2-p for prime p and e > 0 (A276833). - Werner Schulte, Oct 25 2018
Sum_{k=1..n} a(k) ~ c * n^2, where c = 2*Pi^2/(105*zeta(3)) = 0.1563923... . - Amiram Eldar, Oct 23 2022
From Vaclav Kotesovec, Feb 11 2023: (Start)
Dirichlet g.f.: 1/zeta(s) * Product_{p prime} 1 / (1 - p^(1-s) + p^(-s)).
Dirichlet g.f.: zeta(s-1) * Product_{p prime} (1 + (p^(1-s)-2) / (1 - p + p^s)), (with a product that converges for s=2). (End)

Extensions

More terms from Antti Karttunen, Oct 24 2018

A332685 a(n) = Sum_{k=1..n} mu(k/gcd(n, k)).

Original entry on oeis.org

1, 2, 1, 2, 0, 2, 0, 0, -1, 0, 0, 0, -1, -2, -2, -3, 0, -4, -1, -5, -4, -2, 0, -8, -3, -4, -4, -7, 0, -8, -2, -10, -5, -4, -4, -13, 0, -5, -4, -13, 1, -15, -1, -9, -10, -5, -1, -22, -4, -12, -5, -11, -1, -19, -6, -17, -6, -4, 1, -28, 0, -8, -12, -18, -6, -19, 0, -12, -5, -17
Offset: 1

Views

Author

Ilya Gutkovskiy, Feb 19 2020

Keywords

Comments

Inverse Moebius transform of A112399.

Crossrefs

Programs

  • Mathematica
    Table[Sum[MoebiusMu[k/GCD[n, k]], {k, 1, n}], {n, 1, 70}]
  • PARI
    a(n) = sum(k=1, n, moebius(k/gcd(n, k))); \\ Michel Marcus, Feb 21 2020

Formula

a(n) = Sum_{k=1..n} mu(lcm(n, k)/n).
a(n) = Sum_{d|n} A112399(d).

A341635 a(n) = Sum_{d|n} phi(d) * mu(d) * mu(n/d).

Original entry on oeis.org

1, -2, -3, 1, -5, 6, -7, 0, 2, 10, -11, -3, -13, 14, 15, 0, -17, -4, -19, -5, 21, 22, -23, 0, 4, 26, 0, -7, -29, -30, -31, 0, 33, 34, 35, 2, -37, 38, 39, 0, -41, -42, -43, -11, -10, 46, -47, 0, 6, -8, 51, -13, -53, 0, 55, 0, 57, 58, -59, 15, -61, 62, -14, 0, 65
Offset: 1

Views

Author

Ilya Gutkovskiy, Feb 16 2021

Keywords

Comments

Dirichlet inverse of A003967.
Moebius transform of A097945.
From Vaclav Kotesovec, Feb 19 2021: (Start)
Abs(a(n)) <= n.
a(n) = n iff n is in A030229. (End)

Crossrefs

Cf. A000010, A003967, A007427, A007431, A008683, A030229 (fixed points), A046099 (positions of 0's), A068341, A097945, A276833.

Programs

  • Mathematica
    Table[Sum[EulerPhi[d] MoebiusMu[d] MoebiusMu[n/d], {d, Divisors[n]}], {n, 65}]
    Table[Sum[MoebiusMu[GCD[n, k]] MoebiusMu[n/GCD[n, k]], {k, n}], {n, 65}]
  • PARI
    a(n) = sumdiv(n, d, eulerphi(d)*moebius(d)*moebius(n/d)); \\ Michel Marcus, Feb 17 2021

Formula

a(n) = Sum_{k=1..n} mu(gcd(n,k)) * mu(n/gcd(n,k)).
a(1) = 1; a(n) = -Sum_{d|n, d < n} A003967(n/d) * a(d).
a(n) = Sum_{d|n} mu(n/d) * A097945(d).
Multiplicative with a(p^e) = -p if e=1, p-1 if e=2, and 0 otherwise. - Amiram Eldar, Feb 19 2021

A054586 a(n) = Sum_{d|2n+1} phi(d)*mu(d).

Original entry on oeis.org

1, -1, -3, -5, -1, -9, -11, 3, -15, -17, 5, -21, -3, -1, -27, -29, 9, 15, -35, 11, -39, -41, 3, -45, -5, 15, -51, 27, 17, -57, -59, 5, 33, -65, 21, -69, -71, 3, 45, -77, -1, -81, 45, 27, -87, 55, 29, 51, -95, 9, -99, -101, -15, -105, -107, 35, -111, 63, 11, 75, -9
Offset: 0

Views

Author

N. J. A. Sloane, Apr 12 2000

Keywords

References

  • David M. Burton, Elementary Number Theory, Allyn and Bacon Inc., Boston, MA, 1976, p. 152.

Crossrefs

Cf. A276833.

Programs

  • Mathematica
    a[n_] := DivisorSum[2*n+1, MoebiusMu[#]*EulerPhi[#]&]; Table[a[n], {n, 0, 70}] (* Jean-François Alcover, Dec 03 2015 *)
    f[p_, e_] := 2-p; a[n_] := Times @@ f @@@ FactorInteger[2*n+1]; Array[a, 100, 0] (* Amiram Eldar, Aug 12 2023 *)
  • PARI
    j=[]; for(n=0,200,j=concat(j,sumdiv(2*n+1,d,moebius(d)*eulerphi(d)))); j

Formula

a(n) = A276833(2*n+1). - Amiram Eldar, Aug 12 2023

Extensions

Wrong formula deleted by Amiram Eldar, Aug 12 2023
Showing 1-4 of 4 results.