Assumptions:
TeX:
\sum_{k=1}^{n} \gcd\!\left(n, k\right) = \sum_{d \in \{1, 2, \ldots n\},\,d \mid n} d \varphi\!\left(\frac{n}{d}\right)
n \in \mathbb{Z}_{\ge 0}Definitions:
| Fungrim symbol | Notation | Short description |
|---|---|---|
| GCD | Greatest common divisor | |
| ZZBetween | Integers between a and b inclusive | |
| ZZGreaterEqual | Integers greater than or equal to n |
Source code for this entry:
Entry(ID("aaef97"),
Formula(Equal(Sum(GCD(n, k), Tuple(k, 1, n)), SumCondition(Mul(d, Totient(Div(n, d))), d, And(Element(d, ZZBetween(1, n)), Divides(d, n))))),
Variables(n),
Assumptions(Element(n, ZZGreaterEqual(0))))