This question was asked in Ex 5.3, 2

How to find n

Sahil Chhabra's image