The number above shows a concatenating of the first 1000 positive integers in ascending order. How many 3-digit substrings consist of the same digit?
Bonus : Generalize for
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Sometimes, I can Python
For my generalization, I found that the number of 3-digit substrings consisting of the same digit is n ⋅ 1 0 n − 1 + 8 0 0 ( 9 1 0 n − 3 − 1 ) + 9 4 + n ... I think.