I am reading RSA algorithm. So, I was writing a question but I saw this question and still couldn't understand it.
If $$e\cdot d \equiv 1 \pmod{\varphi(n)},$$ then $$ed=k\cdot \varphi(n)+1, \qquad k\in \mathbb{Z},$$
How did that first step turned to second step. Is that some kind of formula? Do, I need to cram it or there is some logic? I think of $1 (\bmod ~\varphi(n)) $ as 1 % $\varphi(n)$ which I quess must be very small as $\varphi(n)$ is very large
Here, $\varphi(n)$ is (p-1)(n-1) where p and q are both large prime numbers.
Also, where does this k come from in picture where k belongs to integer Z.