Let the number of books purchased for Rs.80 = x
Then cost of each books = 80/x
If he buys for more books, the number of books = x+4
Cost of each book = 80/x+4
(80/x)-[80/(x+4)]=1
Solve x=-20 and x = 16
Rejecting x = -20
The number of books purchased = 16