Fungrim home page

Fungrim entry: 157c33

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

a \in \mathbb{Z}
Definitions:
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:
Entry(ID("157c33"),
    Formula(Equal(LCM(a, 2), Mul(Abs(a), Add(1, Div(Sub(1, Pow(-1, a)), 2))))),
    Variables(a),
    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.

2019-08-19 14:38:23.809000 UTC