Pages till 9 uses 9 digits i.e.; 1 to 9.
Pages from 10 to 99 uses 2 digits each.
Number of pages = (99 – 10) + 1 = 90
Number of digits = 2 × 90 = 180.
Pages from 100 to 999 uses 3 digits each.
Number of pages = 999 – 100 + 1 = 900.
Number of digits = 3 × 900 = 2700.
Pages from 1000 to 9999 uses 4 digits each.
Remaining digits = 3089 – 2700 – 180 – 9 = 200.
Remaining number of pages
==50. Hence, total number of pages = 999 + 50
= 1049