Fungrim home page

Fungrim entry: 5fb5e2

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

a \in \mathbb{Z}
Definitions:
Fungrim symbol Notation Short description
GCDgcd ⁣(a,b)\gcd\!\left(a, b\right) Greatest common divisor
Powab{a}^{b} Power
ZZZ\mathbb{Z} Integers
Source code for this entry:
Entry(ID("5fb5e2"),
    Formula(Equal(GCD(a, 2), Add(1, Div(Add(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.

2021-03-15 19:12:00.328586 UTC