Prove that:
let n $\in \mathbb{N} $ and $ z \leq n \in \mathbb{Z}$
$\exists p,q \in \mathbb{Z}: p * z - q * n = 1 \implies \gcd{(z,n)} = 1$
Prove that:
let n $\in \mathbb{N} $ and $ z \leq n \in \mathbb{Z}$
$\exists p,q \in \mathbb{Z}: p * z - q * n = 1 \implies \gcd{(z,n)} = 1$
Note that $\gcd(n,z)|n$ and $\gcd(n,z)|z$ so $\gcd(n,z)| pz - qn$ for all $p,q\in \mathbb Z$.
SO if there is any $p,q \in \mathbb Z$ so that $pn-qz = 1$ then $\gcd(n,z)|1$.
Let $ c$ be a common divisor of $ z $ and $ n $.
$$c|z \wedge c|n \implies $$
$$c|pz \wedge c|qn \implies$$
$$c|(pz-qn) \implies $$ $$c|1 \implies $$ $$|c|=1 \implies$$ $$gcd(z,n)=1$$
$\gcd$to get $\operatorname{gcd}(z,n)$ – Anindya Prithvi Nov 22 '20 at 18:37