Live GMAT classes with Target Test Prep start Nov 21 and Nov 22. First class free.

See classes
Target Test Prep · GMAT

Choose how you want to prepare

Learn live with an expert or move at your own pace. Every option includes the complete TTP study system.

Newsweek Readers’ Choice Awards 2026 winner: Target Test Prep, #1 Test Prep

Target Test Prep was voted #1 Best Test Prep in the 2026 Newsweek Readers’ Choice™ Awards.

★★★★★5.0563 reviews
GMATLiveTeachStarts Nov 22
Josh Braslow, Target Test Prep GMAT expert
LIVE ONLINE CLASSES

Get Ready for GMAT Test Day Faster with Live Online Classes

with Josh Braslow, 20+ years in test prep

Nov 22 · Josh Braslow
Sun · 9:30 AM to 12:30 PM ET
Included
40 hours of live online classes + 6 months of TTP OnDemand
  • Attend the first class for free
  • Every class is recorded, so you never fall behind
View classes & enroll
Limited seats availableTarget Test Prep
EALiveTeachOnDemandStart anytime
EXECUTIVE ASSESSMENT

Target Test Prep EA OnDemand

Self-paced EA prep. Study on your schedule.

EXECUTIVE ASSESSMENT

with

165+ EA score guarantee
$05-day trial no automatic billing
Schedule
Included
40 hours of live online classes plus six months of access to the complete TTP EA OnDemand course.
  • 165+ EA Score Guarantee
  • 4,100+ Quant, Verbal, and Integrated Reasoning practice questions
  • 400+ hours of in-depth video lessons
  • 3,000+ step-by-step video solutions
View EA class & enroll Start free 5-day trial
Limited cohort · enrollment openTrial includes full course accessTarget Test Prep
GMATOnDemandStart anytime
SELF-PACED MASTERCLASS

Target Test Prep GMAT OnDemand

Complete access from day one. Study on your schedule.

715+ score guarantee
$0to start then $127/mo
  • Personalized study plan and analytics
  • Thousands of lessons and practice questions

combinatorics problem

Expert replies
by replayyyy » Thu Oct 28, 2010 1:11 pm
How many positive integers less than 10 000 are there in which the sum of digits equal 5?
A. 31
B. 51
C. 56
D. 62
E. 93
Join the discussion
Source: — Problem Solving |

by Rahul@gurome » Thu Oct 28, 2010 1:48 pm
replayyyy wrote:How many positive integers less than 10 000 are there in which the sum of digits equal 5?
A. 31
B. 51
C. 56
D. 62
E. 93
Positive integer less than 10,000 means the integer can be 1 or 2 or 3 or 4 digit integer.
Sum of digits equal to 5 is possible in the following ways,

(0, 0, 0, 5) => 4!/3! combinations = 4
(0, 0, 1, 4) => 4!/2! combinations = 12
(0, 0, 2, 3) => 4!/2! combinations = 12
(0, 1, 1, 3) => 4!/2! combinations = 12
(0, 1, 2, 2) => 4!/2! combinations = 12
(1, 1, 1, 2) => 4!/3! combinations = 4

Total number of combination possible = (4 +12 +12 +12 +12 +4) = 56

The correct answer is C.

There is an efficient method to solve this kind of problems.
The question can be rephrased as in how many ways a sum of 5 can be spread among 4 digits (including those in the form 0XXX, 00XX, 000X).

Let's assume 'X' represents 1 and '|' represents a digit separator.
Thus, 2012 becomes XX| |X|XX, 0050 becomes ||XXXXX|, 2003 becomes XX|||XXX etc.

As we are working with 4 digit number, we'll use three digit separators and as the sum of digits is 5, we'll use five 'X's. Now the problem is in how many ways 5 X's and 3 digit separators can be arranged among themselves.

Number of ways to arrange them = 8!/(3!*5!) = 56
Rahul Lakhani
Quant Expert
Gurome, Inc.
https://www.GuroMe.com
On MBA sabbatical (at ISB) for 2011-12 - will stay active as time permits
1-800-566-4043 (USA)
+91-99201 32411 (India)
Join the discussion

by arrgos » Fri Oct 29, 2010 4:43 am
Hello Rauhl - et al,
Here's what I did w/o using the factorial method you used (I had no other idea of how to solve it until I read yours):
1. 10000 - 1 = 9999
2. I selected "9" as the point of work
3. I listed all of combinations of numbers that add "9" (1+8, 2+7, 3+6, 4+5)
4. then, I multiplied each combination (1*8=8, 2*7=14, 3*6=18, 4*5=20) and added their results = 60
5. Since I had already 'minus' 1 from 10,000, I went ahead and substracted 4 additional, to get a result of 56; as the correct answer.

What did I do to get it right? Thanks for your reply.
Join the discussion