Here is an excellent paper on the math of asymmetric key encryption: http://www.mathaware.org/mam/06/Kaliski.pdf
See the example on Page 6.
The public key = $55$ Primes used to calculate public key are $5$ and $11$.
$e = 3$
Now see the appendix: $L = \mathrm{LCM}(p-1, q-1) = 20$
The paper states $de = 1 \mod L$
I can't figure out how he gets the value of $d = 7$