RK007 wrote:
Joseph67890 wrote:
Positive 300 multiples of 5's are between 5-1500
No of 5's as units digits = 150 (5,15,25........)
No of 5's as tens digit = 30 (50,55,150,155.......)
No of 5's as hundreds digit = 21 (500,505,510,515....and 1500)
Total = 201
No of 5's as units digits = 150 (5,15,25........)
No of 5's as tens digit = 30 (50,55,150,155.......)
No of 5's as hundreds digit = 21 (500,505,510,515....and 1500)
Total = 201
How did u deal with theoverlaps?
There will not be overlaps. It may sound absurd, but here we consider the 5's as units/tens/hundreds. i.e, unit digit appearance, tens digit appearance and hundreds digit appearance.
For example, consider 555. Our idea here is to count
...









