Take a look at RF SYNTHESIZER - A WORKED EXAMPLE on page 21 of the ADF4351 data sheet: http://www.analog.com/static/imported-files/data_sheets/ADF4351.pdf#page=21
Or maybe take a look at the ADF4351 evaluation board control software source code:
Here's the relevant section: