Last visit was: 19 Nov 2025, 09:31 It is currently 19 Nov 2025, 09:31
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: 19 Nov 2025
Posts: 105,389
Own Kudos:
Given Kudos: 99,977
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 105,389
Kudos: 778,287
 [10]
1
Kudos
Add Kudos
8
Bookmarks
Bookmark this Post
User avatar
imeanup
Joined: 15 Jun 2017
Last visit: 17 Sep 2025
Posts: 452
Own Kudos:
607
 [3]
Given Kudos: 8
Location: India
Posts: 452
Kudos: 607
 [3]
2
Kudos
Add Kudos
1
Bookmarks
Bookmark this Post
User avatar
Aryaa03
Joined: 12 Jun 2023
Last visit: 23 Jul 2025
Posts: 210
Own Kudos:
273
 [5]
Given Kudos: 159
Location: India
GMAT Focus 1: 645 Q86 V81 DI78
GMAT Focus 1: 645 Q86 V81 DI78
Posts: 210
Kudos: 273
 [5]
2
Kudos
Add Kudos
2
Bookmarks
Bookmark this Post
User avatar
VivekSri
Joined: 01 May 2022
Last visit: 19 Nov 2025
Posts: 468
Own Kudos:
Given Kudos: 117
Location: India
WE:Engineering (Consulting)
Posts: 468
Kudos: 721
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: 11 Nov 2025
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: 17 Sep 2025
Posts: 452
Own Kudos:
Given Kudos: 8
Location: India
Posts: 452
Kudos: 607
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: 19 Nov 2025
Posts: 105,389
Own Kudos:
Given Kudos: 99,977
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 105,389
Kudos: 778,287
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: 18 Nov 2025
Posts: 39
Own Kudos:
Given Kudos: 12
Products:
Posts: 39
Kudos: 28
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
Moderators:
Math Expert
105389 posts
Tuck School Moderator
805 posts