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.

A348984 a(n) = gcd(sigma(n), A325973(n)), where A325973 is the arithmetic mean of {sum of squarefree divisors} and {sum of unitary divisors}.

Original entry on oeis.org

1, 3, 4, 1, 6, 12, 8, 3, 1, 18, 12, 4, 14, 24, 24, 1, 18, 3, 20, 6, 32, 36, 24, 12, 1, 42, 8, 8, 30, 72, 32, 9, 48, 54, 48, 1, 38, 60, 56, 18, 42, 96, 44, 12, 6, 72, 48, 4, 1, 3, 72, 14, 54, 24, 72, 24, 80, 90, 60, 24, 62, 96, 8, 1, 84, 144, 68, 18, 96, 144, 72, 3, 74, 114, 4, 20, 96, 168, 80, 6, 1, 126, 84, 32, 108
Offset: 1

Views

Author

Antti Karttunen, Nov 06 2021

Keywords

Comments

This is not multiplicative. The first point where a(m*n) = a(m)*a(n) does not hold for coprime m and n is 108 = 4*27, where a(108) = 4, although a(4) = 1 and a(27) = 8.

Crossrefs

Differs from A348047 for the first time at n=108, where a(108) = 4, while A348047(108) = 8.
Cf. also A348733, A348946.

Programs

  • Mathematica
    f1[p_, e_] := p + 1; f2[p_, e_] := p^e + 1; s[1] = 1; s[n_] := (Times @@ f1 @@@ (f = FactorInteger[n]) + Times @@ f2 @@@ f)/2; a[n_] := GCD[s[n], DivisorSigma[1, n]]; Array[a, 100] (* Amiram Eldar, Nov 06 2021 *)
  • PARI
    A325973(n) = (1/2)*sumdiv(n, d, d*(issquarefree(d) + (1==gcd(d, n/d))));
    A348984(n) = gcd(sigma(n), A325973(n));

Formula

a(n) = gcd(A000203(n), A325973(n)).
a(n) = gcd(A000203(n), A325974(n)) = gcd(A325973(n), A325974(n)).
a(n) = A000203(n) / A348985(n) = A325973(n) / A348986(n).

A348985 Numerator of ratio sigma(n) / A325973(n), where A325973 is the arithmetic mean of {sum of squarefree divisors} and {sum of unitary divisors}.

Original entry on oeis.org

1, 1, 1, 7, 1, 1, 1, 5, 13, 1, 1, 7, 1, 1, 1, 31, 1, 13, 1, 7, 1, 1, 1, 5, 31, 1, 5, 7, 1, 1, 1, 7, 1, 1, 1, 91, 1, 1, 1, 5, 1, 1, 1, 7, 13, 1, 1, 31, 57, 31, 1, 7, 1, 5, 1, 5, 1, 1, 1, 7, 1, 1, 13, 127, 1, 1, 1, 7, 1, 1, 1, 65, 1, 1, 31, 7, 1, 1, 1, 31, 121, 1, 1, 7, 1, 1, 1, 5, 1, 13, 1, 7, 1, 1, 1, 7, 1, 57, 13
Offset: 1

Views

Author

Antti Karttunen, Nov 06 2021

Keywords

Comments

This is not multiplicative. The first point where a(m*n) = a(m)*a(n) does not hold for coprime m and n is 108 = 4*27, where a(108) = 70 <> 35 = 7*5 = a(4)*(27).

Crossrefs

Differs from A348048 for the first time at n=108, where a(108) = 70, while A348048(108) = 35.
Cf. also A348948.

Programs

  • Mathematica
    f1[p_, e_] := p + 1; f2[p_, e_] := p^e + 1; s[1] = 1; s[n_] := (Times @@ f1 @@@ (f = FactorInteger[n]) + Times @@ f2 @@@ f)/2; a[n_] := Numerator[DivisorSigma[1, n]/s[n]]; Array[a, 100] (* Amiram Eldar, Nov 06 2021 *)
  • PARI
    A325973(n) = (1/2)*sumdiv(n, d, d*(issquarefree(d) + (1==gcd(d, n/d))));
    A348985(n) = { my(s=sigma(n)); (s/gcd(s, A325973(n))); };

Formula

a(n) = A000203(n) / A348984(n) = sigma(n) / gcd(sigma(n), A325973(n)).
Showing 1-2 of 2 results.