Last visit was: 24 Apr 2026, 20:43 It is currently 24 Apr 2026, 20:43
Close
GMAT Club Daily Prep
Thank you for using the timer - this advanced tool can estimate your performance and suggest more practice questions. We have subscribed you to Daily Prep Questions via email.

Customized
for You

we will pick new questions that match your level based on your Timer History

Track
Your Progress

every week, we’ll send you an estimated GMAT score based on your performance

Practice
Pays

we will pick new questions that match your level based on your Timer History
Not interested in getting valuable practice questions and articles delivered to your email? No problem, unsubscribe here.
Close
Request Expert Reply
Confirm Cancel
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 24 Apr 2026
Posts: 109,818
Own Kudos:
Given Kudos: 105,873
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 109,818
Kudos: 811,088
 [13]
1
Kudos
Add Kudos
11
Bookmarks
Bookmark this Post
Most Helpful Reply
User avatar
Aryaa03
Joined: 12 Jun 2023
Last visit: 19 Feb 2026
Posts: 210
Own Kudos:
285
 [6]
Given Kudos: 159
Location: India
GMAT Focus 1: 645 Q86 V81 DI78
GMAT Focus 1: 645 Q86 V81 DI78
Posts: 210
Kudos: 285
 [6]
3
Kudos
Add Kudos
2
Bookmarks
Bookmark this Post
General Discussion
User avatar
imeanup
Joined: 15 Jun 2017
Last visit: 24 Mar 2026
Posts: 452
Own Kudos:
635
 [4]
Given Kudos: 8
Location: India
Posts: 452
Kudos: 635
 [4]
3
Kudos
Add Kudos
1
Bookmarks
Bookmark this Post
User avatar
VivekSri
Joined: 01 May 2022
Last visit: 05 Feb 2026
Posts: 468
Own Kudos:
Given Kudos: 117
Location: India
WE:Engineering (Consulting)
Posts: 468
Kudos: 772
Kudos
Add Kudos
Bookmarks
Bookmark this Post
meanup
The problem becomes easier if we consider the following case:
* \(189 - 200 \to1 (195)\)
* \(5000-5004 \to 5 (5000, 5001, 5002, 5003, 5004)\)

Hence, check for a number which ends with \(6\), i.e. \(1466\)

\(0-9 \to 1\)

\(0-99 \to 20\)

\(100-199 \to 20\)

\(500 - 599 \to 120\)

\(1000 - 1999 \to 300\)

\(\cdots\)

\(4000 - 4999 \to 300\)

\(0 - 999 \to 180 + 120 = 300\)

\(1000-4999 = 300 \times 4 = 1200\)

For this problem we can do,
\(1 + 20\times 7 + 120 + 300 \times 4 + 5 = 1466\)

C

Can any one help me with any other approach, like Permutation and combination or digit calculation easy, I am able to get this process, seems its bit lengthy.
User avatar
Auror_07
Joined: 02 May 2023
Last visit: 24 Feb 2026
Posts: 106
Own Kudos:
Given Kudos: 17
Location: India
GMAT Focus 1: 675 Q88 V83 DI80
GMAT 1: 690 Q50 V34
GMAT 2: 720 Q48 V40
GPA: 4.0
Products:
GMAT Focus 1: 675 Q88 V83 DI80
GMAT 2: 720 Q48 V40
Posts: 106
Kudos: 61
Kudos
Add Kudos
Bookmarks
Bookmark this Post
This was ChatGPT’s answer:

To find the number of times the digit 5 appears when listing the numbers from 189 to 5004, we can analyze each place value separately.

1. **Units place (1s):**
- There are 9 occurrences of 5 in every 100 numbers (from 0 to 99).
- The number of hundreds in the given range is (5004 - 189) / 100 + 1 = 49.
- So, there are 9 * 49 occurrences of 5 in the units place.

2. **Tens place (10s):**
- There is 1 occurrence of 5 in every 10 numbers (from 50 to 59).
- The number of tens in the given range is (5004 - 189) / 10 + 1 = 482.
- So, there are 1 * 482 occurrences of 5 in the tens place.

3. **Hundreds place (100s):**
- There is 1 occurrence of 5 in every 100 numbers (from 500 to 599).
- The number of hundreds in the given range is (5004 - 189) / 100 + 1 = 49.
- So, there are 1 * 49 occurrences of 5 in the hundreds place.

4. **Thousands place (1000s):**
- There is 1 occurrence of 5 in every 1000 numbers (from 5000 to 5999).
- The number of thousands in the given range is (5004 - 189) / 1000 + 1 = 6.
- So, there are 1 * 6 occurrences of 5 in the thousands place.

Now, add up the occurrences from each place:

\[ 9 \times 49 + 1 \times 482 + 1 \times 49 + 1 \times 6 = 441 + 482 + 49 + 6 = 978 \]

Therefore, the digit 5 appears 978 times when listing the numbers from 189 to 5004.

Bunuel, requesting your help!

Posted from my mobile device
User avatar
imeanup
Joined: 15 Jun 2017
Last visit: 24 Mar 2026
Posts: 452
Own Kudos:
Given Kudos: 8
Location: India
Posts: 452
Kudos: 635
Kudos
Add Kudos
Bookmarks
Bookmark this Post
VivekPrateek
meanup
The problem becomes easier if we consider the following case:
* \(189 - 200 \to1 (195)\)
* \(5000-5004 \to 5 (5000, 5001, 5002, 5003, 5004)\)

Hence, check for a number which ends with \(6\), i.e. \(1466\)

\(0-9 \to 1\)

\(0-99 \to 20\)

\(100-199 \to 20\)

\(500 - 599 \to 120\)

\(1000 - 1999 \to 300\)

\(\cdots\)

\(4000 - 4999 \to 300\)

\(0 - 999 \to 180 + 120 = 300\)

\(1000-4999 = 300 \times 4 = 1200\)

For this problem we can do,
\(1 + 20\times 7 + 120 + 300 \times 4 + 5 = 1466\)

C

Can any one help me with any other approach, like Permutation and combination or digit calculation easy, I am able to get this process, seems its bit lengthy.

Read this great post in Quora : How many times is the digit 5 written when we write all numbers from 1 to 10,000?
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 24 Apr 2026
Posts: 109,818
Own Kudos:
Given Kudos: 105,873
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 109,818
Kudos: 811,088
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Auror_07
This was ChatGPT’s answer:

To find the number of times the digit 5 appears when listing the numbers from 189 to 5004, we can analyze each place value separately.

1. **Units place (1s):**
- There are 9 occurrences of 5 in every 100 numbers (from 0 to 99).
- The number of hundreds in the given range is (5004 - 189) / 100 + 1 = 49.
- So, there are 9 * 49 occurrences of 5 in the units place.

2. **Tens place (10s):**
- There is 1 occurrence of 5 in every 10 numbers (from 50 to 59).
- The number of tens in the given range is (5004 - 189) / 10 + 1 = 482.
- So, there are 1 * 482 occurrences of 5 in the tens place.

3. **Hundreds place (100s):**
- There is 1 occurrence of 5 in every 100 numbers (from 500 to 599).
- The number of hundreds in the given range is (5004 - 189) / 100 + 1 = 49.
- So, there are 1 * 49 occurrences of 5 in the hundreds place.

4. **Thousands place (1000s):**
- There is 1 occurrence of 5 in every 1000 numbers (from 5000 to 5999).
- The number of thousands in the given range is (5004 - 189) / 1000 + 1 = 6.
- So, there are 1 * 6 occurrences of 5 in the thousands place.

Now, add up the occurrences from each place:

\[ 9 \times 49 + 1 \times 482 + 1 \times 49 + 1 \times 6 = 441 + 482 + 49 + 6 = 978 \]

Therefore, the digit 5 appears 978 times when listing the numbers from 189 to 5004.

Bunuel, requesting your help!

Posted from my mobile device

ChatGPT is very bad at math at this point, so don't trust it with math tasks. Check the solutions above for the correct answer.
avatar
DhanyaAbhirami
Joined: 09 Mar 2024
Last visit: 16 Mar 2026
Posts: 55
Own Kudos:
Given Kudos: 14
Posts: 55
Kudos: 43
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Can we do this way?
N(1-5004) - N(1-189)
For N(1-189)
In units place = 18 X 1 (from 1-180) + 1 (from 181-189 since 189>185)
In tens place = 1 X 10 (from 1-100) + 10 (from 101-189 since 189>159)
N(1-189) = 39
For N(1-5004)
In units place = 500 X 1 (from 1-5000) + 0 (since 5004<5005)
In tens place = 50 X 10 (from 1-5000) + 0 (since 5004<5050)
In hundreds place = 5 X 100 (from 1-5000) + 0 (since 5004<5500)
In thousands place = 1 (from 1-5000) + 4 (from 5001-5004)
N(1-5004) = 1505
N(1-5004) - N(1-189) = 1505 - 39 = 1466

Bunuel Please verify this. Thanks
User avatar
Wadree
Joined: 06 Sep 2024
Last visit: 07 Jan 2026
Posts: 68
Own Kudos:
Given Kudos: 230
Posts: 68
Kudos: 2
Kudos
Add Kudos
Bookmarks
Bookmark this Post
In every 10..... 5 comes in units place only 1 time.... And there are 100 times 10 in a 1000.... So in every 1000.... Digit 5 comes in units place 100 × 1 = 100 times....

In every 100..... 5 comes in tens place 10 times (50, 51, 52.....58, 59)...... And there are 10 times 100 in a 1000..... So in every 1000..... Digit 5 comes in tens place 10 × 10 = 100 times.....

In every 1000..... 5 comes in hundreds place 100 times ( 500, 501, 502..... 598, 599 ) .... And there is 1 times 1000 in a 1000..... So in every 1000.... Digit 5 comes in hundreds place 1 × 100 = 100 times.......

So in every 1000... Digit 5 comes = 3 × 100 = 300 times......

From 0 - 4999 .... We got 5 times 1000..... So we got 5 = 5 × 300 = 1500 times....

Buuut.....

From 0 - 189 ..... There are 19 units place 5s .... And 20 tens place 5s ..... So total 39 times 5s .....

So...... From 189 - 4999 .... We got 5 = 1500 - 39 = 1461 times.....

And.....we got 5000, 5001, 5002, 5003 and 5004 .... So 5 more 5s.....

So from 189 - 5004 ..... We got 5 = 1461 + 5 = 1466 times.....
Moderators:
Math Expert
109818 posts
Tuck School Moderator
853 posts