This question was asked in Example 9
Prove that 3 √2 is irrational

Ks Viji's image