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.

A385200 The sum of the exponents e for the integers k from 1 to n such that the greatest divisor of k that is a unitary divisor of n is a prime power p^e.

Original entry on oeis.org

0, 1, 1, 2, 1, 3, 1, 3, 2, 5, 1, 7, 1, 7, 6, 4, 1, 10, 1, 11, 8, 11, 1, 13, 2, 13, 3, 15, 1, 14, 1, 5, 12, 17, 10, 22, 1, 19, 14, 19, 1, 20, 1, 23, 16, 23, 1, 23, 2, 26, 18, 27, 1, 29, 14, 25, 20, 29, 1, 34, 1, 31, 20, 6, 16, 32, 1, 35, 24, 34, 1, 38, 1, 37, 28
Offset: 1

Views

Author

Amiram Eldar, Jun 21 2025

Keywords

Examples

			For n = 12 and the integers k from 1 to 12, the greatest divisor of k that is a unitary divisor of 12 are 1, 1, 3, 4, 1, 3, 1, 4, 3, 1, 1 and 12, respectively. The prime powers are 3 = 3^1, 4 = 2^2, 3 = 3^1, 4 = 2^2 and 3 = 3^1, and the sum of the exponents is a(12) = 1 + 2 + 1 + 2 + 1 = 7.
		

Crossrefs

The unitary analog of A122410.

Programs

  • Mathematica
    a[n_] := Module[{f = FactorInteger[n], p, e}, p = f[[;; , 1]]; e = f[[;; , 2]]; Times @@ (p^e-1) * Total[e/(p^e-1)]]; a[1] = 0; Array[a, 100]
  • PARI
    a(n) = {my(f = factor(n)); prod(i = 1, #f~, f[i,1]^f[i,2]-1) * sum(i = 1, #f~, f[i,2]/(f[i,1]^f[i,2] - 1));}

Formula

a(n) = uphi(n) * Sum_{p^e || n} (e/(p^e-1)), where uphi = A047994, and p^e || n denotes that the prime power p^e unitarily divides n (i.e., p^e divides n but p^(e+1) does not divide n).
Sum_{k=1..n} a(k) ~ c * n^2 / 2, where c = c1 * c2 = 0.31889766457764592387..., c1 = Product_{p prime}(1 - 1/(p*(p+1))) = A065463, and c2 = Sum_{p prime}(p^2/((p^2-1)*(p^2+p-1))) = 0.45269528731431531046... .