You can put this solution on YOUR website! pages 1-9 are 9 pages that use 9 digits
pages 10-99 are 90 pages that use 2*90 = 180 digits
The whole book has 522 digits, so the number remaining is
522 - (180 + 9) = 333 digits
All the pages from 100-999 have 3 digits each
333/3 = 111 pages used
----------------------
9 pages use 9 digits
90 pages use 180 digits
111 pages use 333 digits
The book has 9 + 90 + 111 = 210 pages