Ritwika B.

asked • 05/22/16

Determine the number of ways to choose 5 numbers from the first 18 natural numbers such thatany two chosen numbers differ by at least 2.

Please I need a method. Thanks.

2 Answers By Expert Tutors

By:

David W. answered • 05/22/16

Tutor
4.7 (90)

Experienced Prof

Dan D.

David W.  Nice programming work
The number of ways that 5 things can be arranged is 51 = 5 4 3 2 1 = 120,
so dividing your result by this gives  240240 / 120 = 2002 which I (fiannly) got with combinatorics.  Nice.
Report

05/22/16

Dan D. answered • 05/22/16

Tutor
4.9 (434)

Patient Tutor Focused on Your Understanding of Math

Dan D.

P.S. I looked at David W.'s program (cute!) result and dividing his result 240240 by the number of ways 5 things can be arranged, 5! = 5 4 3 2 1 = 120 gives 2002 !!!  Amazing.
Report

05/22/16

Ritwika B.

I can understand your method. But the answer is given as 2002 only. Can you explain?
Report

05/22/16

David W.

For the answer of 2002, Dan D. point out,  "This is the number of distinct sets of 5 numbers, the order does not matter."
 
For the answer of 240240, I noted, "This method counts both (18,16,14,12,10) and (18,16,14,10,12) as different solutions, for example," so, the order does matter.
 
The words, "determine the number of ways to choose" are not clear about whether the order of the 5 numbers matters or not.
 
 
Report

05/23/16

Dan D.

Right, the wording of the question is ambiguous.
 
As an example of why they might prefer the 2002,
Suppose I said I was thinking of 3 numbers from 1 to 10 that add to 15.
And you guessed "5, 8, and 2"
And I said "No!  I was thinking of 2, 5 and 8"
You might then say "But it's the same 3 numbers, I guessed them!"
 
Report

05/23/16

Ritwika B.

Okay. Thanks. I got it now. These are really complicated sometimes. 
Report

05/23/16

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.