Gary C. Kessler's "An Overview of Cryptography: Some of the Finer Details of Diffie-Hellman"

Read section 5.2 about the steps in the Diffie-Hellman Public-Key Algorithm.