Generating the four examples
Calculating denominator