Let the removed numbers be and

Now

On solving we have two inequalities

Since and must be an integer.

Similarly solving the inequality, and thus

Therefore,

It is only for that p is an integer.Thus

Therefore the number of pages in the book are and the removed pages are and