You start at 51. Then you count down until you have 2 numbers to multiply (the 2 is from 51P2). Another example would be 51P4 = 51*50*49*48. Notice how I started at 51 and counted down to 48 to have 4 terms multiplied out.
You could use the formula nPr = (n!)/(n-r)!, but I like the first method better. Either way is up to you.