Assumptions:
TeX:
\sum_{k=1}^{n} \operatorname{lcm}\!\left(n, k\right) = \frac{n}{2} \left(1 + \sum_{d \mid n} d \varphi(d)\right) n \in \mathbb{Z}_{\ge 0}
Definitions:
Fungrim symbol | Notation | Short description |
---|---|---|
Sum | Sum | |
LCM | Least common multiple | |
DivisorSum | Sum over divisors | |
Totient | Euler totient function | |
ZZGreaterEqual | Integers greater than or equal to n |
Source code for this entry:
Entry(ID("c24323"), Formula(Equal(Sum(LCM(n, k), For(k, 1, n)), Mul(Div(n, 2), Add(1, DivisorSum(Mul(d, Totient(d)), For(d, n)))))), Variables(n), Assumptions(Element(n, ZZGreaterEqual(0))))