An eccentric person starts writing numbers from 1 to n in a row such that ith number is written i2 times. Then find the 500th digit from the starting.
To exhaust all single-digit numbers he must have written
To exhaust 10 he must write 2 x 102 more digits. That is, 485 digits. So, the 500th digit will occur when he is writing 11