Fungrim home page

Fungrim entry: 7a1799

lcm ⁣(a,a2)=a(a2)2(1+1(1)a2)\operatorname{lcm}\!\left(a, a - 2\right) = \frac{\left|a \left(a - 2\right)\right|}{2} \left(1 + \frac{1 - {\left(-1\right)}^{a}}{2}\right)
Assumptions:aZa \in \mathbb{Z}
\operatorname{lcm}\!\left(a, a - 2\right) = \frac{\left|a \left(a - 2\right)\right|}{2} \left(1 + \frac{1 - {\left(-1\right)}^{a}}{2}\right)

a \in \mathbb{Z}
Fungrim symbol Notation Short description
LCMlcm ⁣(a,b)\operatorname{lcm}\!\left(a, b\right) Least common multiple
Absz\left|z\right| Absolute value
Powab{a}^{b} Power
ZZZ\mathbb{Z} Integers
Source code for this entry:
    Formula(Equal(LCM(a, Sub(a, 2)), Mul(Div(Abs(Mul(a, Sub(a, 2))), 2), Add(1, Div(Sub(1, Pow(-1, a)), 2))))),
    Assumptions(Element(a, ZZ)))

Topics using this entry

Copyright (C) Fredrik Johansson and contributors. Fungrim is provided under the MIT license. The source code is on GitHub.

2021-03-15 19:12:00.328586 UTC