David's candy

David has a certain number of distinct candies, and he wants to pick 2 of them to give to his friend Michael. If he can pick the candies in 210 ways, how many candies does he have?


The answer is 21.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

12 solutions

Sean Elliott
Dec 21, 2013

Let the number of candies David has be n n . He can choose 2 2 candies in ( n 2 ) \binom{n}{2} ways. Thus we have the equation ( n 2 ) = 210 \binom{n}{2}=210 If you are familiar with combinations, you may recognize the answer from here; however, we can solve it algebraically using the expansion of ( n 2 ) \binom{n}{2} , n ( n 1 ) 2 \frac{n(n-1)}{2} . So the equation we had is really n ( n 1 ) 2 = 210 0 = n 2 n 420 = ( n 21 ) ( n + 20 ) \frac{n(n-1)}{2}=210\Rightarrow 0=n^2-n-420=(n-21)(n+20) David must have a positive number of candies, so we choose the positive root, n = 21 \boxed{n=21} , as our answer.

The anser I got was 15 because for the first pick, he will have x options. For the second pick he will have x minus 1 options. Doing the algebra gets 15. (15 times 14 is 210)

Finn Hulse - 7 years, 5 months ago

Log in to reply

Me too.....

Richelle Chua - 7 years, 2 months ago

Even I did.........can anyone explain why 15 is a wrong answer?

Sarthak Tanwani - 6 years, 6 months ago

Very nice solution !

Devesh Rai - 7 years, 5 months ago

Thanks!

Sangeeta Mishra - 7 years, 5 months ago
Ajay Maity
Dec 23, 2013

Let us say there are x x distinct candies.

Number of ways in which David can pick 2 2 out of x x candies are 2 x C _{2}^{x}\textrm{C} .

Hence, 2 x C = 210 _{2}^{x}\textrm{C} = 210

x ! 2 ! × ( x 2 ) ! = 210 \frac{x!}{2! \times (x - 2)!} = 210

x × ( x 1 ) × ( x 2 ) ! 2 ! × ( x 2 ) ! = 210 \frac{x \times (x - 1) \times (x - 2)!}{2! \times (x - 2)!} = 210

x × ( x 1 ) 2 ! = 210 \frac{x \times (x - 1)}{2!} = 210

x 2 x = 420 x^{2} - x = 420

x 2 x 420 = 0 x^{2} - x - 420 = 0

Solving this, we get

x = 21 x = 21 and x = 20 x = -20

Since x x has to be positive, x = 21 x = \boxed{21} is the answer!

Really nice.

Soham Dibyachintan - 7 years, 5 months ago
Oliver Welsh
Dec 21, 2013

Let the number of candies be n n . Then we have, \begin{align} {n \choose 2} &= 210 \\ \frac{n(n-1)}{2} &= 210 \\ n^2-n-420 &= 0 \\ (n-21)(n+20) &=0 \\ &\Rightarrow n = 21 \quad \text{or} \quad n = -20 \end{align} However you cannot have 20 -20 candies so the final answer is 21 \fbox{21}

Budi Utomo
Dec 23, 2013

n.C.2 = 210 ---> n! / (n-2)!.2! = 210 ---> n! / (n-2)! = 420 ----> n.(n-1).(n-2)! /(n-2)! = 420 ---> n.(n-1) = 420 ----> 420 = 21.20 = n(n-1). So, n = 21. Answer : 21

Eduardo Petry
Dec 30, 2013

( x 2 ) = 210 x ! 2 ! ( x 2 ) ! = 210 x ( x 1 ) ( x 2 ) ! 2 ! ( x 2 ) ! = 210 x 2 x 2 = 210 {x \choose 2}=210 \rightarrow \dfrac{x!}{2!(x-2)!}=210 \rightarrow \dfrac{x(x-1)(x-2)!}{2!(x-2)!}=210 \rightarrow \dfrac{x^{2}-x}{2}=210

Solving x 2 x 420 = 0 x^{2}-x-420=0 we find x = 20 x=-20 or x = 21 x=21 but since x 0 x \geq 0 the answer is 21 \boxed{21}

Vivek Singh
Mar 17, 2014

according to the question , he selected 2 candies out of n candies

then, nC2 = 210

on solving this we get n = 21

Marshal Pedapudi
Mar 11, 2014

n
let total no . of candies be n. then no. of ways of selecting 2 candies= c =210
2 nc2=n!/(n-2)!/2! which is equal to n(n-1)/2 that implies, n square - n =210x2=420. we will get quadratic equation. on factorising we get n=21 only because in nc2, 'n' must be +ve integer

Xher Galarido
Jan 17, 2014

We can use the formula n(n-1)/2 = 210

Just take for example that David has 3 candies with different colors Red, Green and Blue. There will be 3 ways in which he can give his candies to his friend, namely, Red and Green, Green and Blue, and Red and Blue.

Calculated as: 3(3-1)/2 = 3

Thus in the problem above, n(n-1)/2 = 210 n(n-1) = 420 n^2 - n - 420 = 0

by getting the roots of 420, we can have a result of n = -20 and n = 21.

The final answer is 21.

because david has some distinct type of candies, Simply we can made to :

( x 2 ) \binom {x} {2} = 210 210

x ! ( x 2 ) ! 2 ! \frac {x!} {(x-2)! 2!} = 210 210

x ! ( x 2 ) ! \frac {x!} {(x-2)!} = 420 420 \Rightarrow cause 420 420 = = 21 × 20 21 \times 20 , so x x = = 21 21

And david has 21 \boxed {21} candies.

Aryan C.
Dec 24, 2013

He wants to select 2 candies out of n and he can do it nC2 number of ways which is given as 210. nC2 = 210 n!/((n-2)!2!) = 210 n (n-1) = 420 n (n-1) = 21*20 By comparing we see that n = 21.

Rezaul Sagar
Dec 23, 2013

21 C2=210

Rohan Sharma
Dec 23, 2013

suppose there are n candies the no. of ways to select any 2 of them will be nc2 which will be equal to 210 form quardatic equation the value of n comes out to be 21

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...