A few people are at a party. As they are bored, they decide to connect each other with strings. Every person must be connected to every other person. For example, if there are 3 people ( A , B , C ) , ( A ) will be connected to ( B , C ) , ( B ) will be connected to ( A , C ) and ( C ) will be connected to ( A , B ) . If they have less than 1 0 0 0 strings, what is the maximum number of people at the party?
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.
But according to the given scenario, if A is connected to B , then B is again connected to A (as their connection has been mentioned twice) So the no of strings for 'n' people should be nC2 x 2 which in this case will give n = 32
Log in to reply
You are mistaken. Suppose A and B are 2 people connected by a string. The connection between A and B and vice-versa is done by the same string, not 2 strings . So, the answer will be n C 2 and not 2 × n C 2 .
Log in to reply
i didnt have maths so can you tell me what is nC2 is.Is it the same as combination and is n(n-1)/2 the formula for a coefficient..How do we know that were using this formula?
Log in to reply
@Aishani Yadav – Actually, n C 2 or ( 2 n ) is the binomial coefficient which is used to signify the number of combinations or selections possible for n objects taken 2 at a time.
n C r = ( r n ) = r ! × ( n − r ) ! n !
n C 2 = ( 2 n ) = 2 ! × ( n − 2 ) ! n ! = 2 n ( n − 1 )
Sorry for the mistake in the second last and the last line, it should be n < 4 5 . 2 2 5 and the value less than 45.225 and still the max. value of n possible is 4 5 , so 4 5 is our answer.
P.S. -- The mistake in the last line has been corrected in the solution.
it look like complete graph and in complete graph no of edges n(n-1)/2 so easily compute
Log in to reply
What graph and what edges ?? For n 2 − n − 2 0 0 0 = 0 , there is only one solution of n which is 4 5 . 2 2 5 .
Would you explain which graph you are talking about ??
Sir, I solved it using the formula n + Number of diagonals in a n -gon. Is it right to do so or was it just luck?
@David Vreken , @Chew-Seong Cheong, @Stef Smith
Log in to reply
It is the same formula.
use this formula (x(x-1))/2 < 1000 where x= number of people and (x-1)= number of strings per person. Dividing by two beacause strings from person A to person B is the same as Peron B to A.
Actually the problem can best be interpreted and understood through the concept of combinations. If n is the total number of people, then we know that a string can connect only 2 people and connection from one to another is the same as the reverse, so we use combination not permutation and the answer would be the max value of n which satisfies the equation n C 2 < 1 0 0 0 , i.e., ( 2 n ) < 1 0 0 0 .
n C 2 or ( 2 n ) represents the number of ways to select 2 people at a time out of a total of n people.
apply AP to that u will no it urself
x(x+1)/2 is ultimately same as x(x-1)/2. the fact is what you take as answer(x+1 in the first and x in the 2nd i think)
yes , i do not think about the same string tied a & b. it is to be devide 2
why am i here
its X(X+1) and not X(X-1)
Simply observing the pattern we can see that if there are n people then starting from the first person , the first person connects with (n - 1) people , the second person connects with (n - 2) people and so on till the last one connects with 1 people . So adding for n people we get (n - 1) + (n - 2) + (n - 3) + ....... + 2 +1 = (n - 1)(n )/2 Now for n = 45 we get the maximum value less than 1000 i.e. 990.
the correct ans is 44 and certainly not 45!....... its the 44 th term in the sequence that yields 22*45......and not 45th term......... if there were 45 guests then there would have been more than a thousand threads!
for n+1 number of guests, the number of strings are 1+2+3+4+... ... ... +n .
Assume n(n-1)/2 = 1000 so n = 44 (approx... but we take the integer value)
So the number of guests are 44+1=45
x(x-1)/2 is the right formula instead of x(x+1)/2
For there to be the maximum number of people n , each string must connect a different pair. If there were 3 people, there would be 3 strings, for 4 people there would be 6, for 5 there would be 10, and for 6 there would be 15. Note that the number of strings is the ( n -1)th triangle number. The highest triangle number that is still under 1000 is 990, which is the 44th triangle number. Therefore the number of people is 45.
*Triangle numbers are numbers that can be written out as that number of dots in rows to make an equilateral triangle.
Here the no. of string refers to the no. of pairs that one can form from the given number of people . Here the order does not matter since A being attached to B is equivalent to B being attached to A, hence it becomes a problem of combination and not permutation. The answer is as simple as " nC2 < 1000 " where n should be an integer, which comes at n = 45.
When people are connected, let n be the amount of people. Then the amount of connections is n(n+1)/2. We can set up an equation with 1,000 on the other side, and solve. We find that 45 is the smallest n that fits.
Imagine the people as the vertex of a polygon, and the strings as diagonals. The total number of strings would be:
2 n ( n − 3 ) + n < 1 0 0 0 n 2 − 3 n + 2 n − 2 0 0 0 < 0 − 4 4 . 2 < n < 4 5 . 2 n = 4 5
It takes every two persons to be connected by a string. Therefore n persons, it is ( 2 n ) . To find ( 2 n ) < 1 0 0 0 , we have 2 n ( n − 1 ) < 1 0 0 0 ⟹ n = ⌈ 2 0 0 0 ⌉ = 4 5 , where ⌈ ⋅ ⌉ denotes the ceiling function .
Nice problem. I won't add another solution as there are plenty here but I really enjoyed taking a pen and paper approach to solving it.
Let's say the guests number will be n g and the max strings number n s
we know logically that each two connected together with only one string
so if we start with one of the guests we will get 2 facts\info
1- n s = n g − 1
2-The n s will be decreased by "1" with each guest we use as a pivot to create new pairs
n s ) t o t a l = 1 + 2 + 3 + 5 + . . . . + n s
using the formula
S u m o f n u m b e r s f r o m 1 t o n = 2 n × ( n + 1 )
2 n s × ( n s + 1 ) < 1 0 0 0
you can solve the equation or just try a few numbers between 40 and 50
you'll find out 44 is max number of strings and as follows 45 is the max number of guests
Since each of the people are connected then there will be a total of n C 2 number of ways of doing this. Since there are only 1000 stirngs then we look for the largest value of n such that n C 2 < 1 0 0 0 . By formula, n C 2 = 2 ! ( n − 2 ) ! n ! = 2 n ( n − 1 ) < 1 0 0 0 . Multiplying both by 2, we have n ( n − 1 ) < 2 0 0 0
We assume to have equality. that is,
n
(
n
−
1
)
=
2
0
0
0
.
To find the value of
n
, we look at the
geometric mean
of
n
and
n
−
1
which is
2
0
0
0
=
4
4
.
7
.
This means that the integers n and n − 1 are integers above and below 44.7. Thus we have n = 4 5 .
We can check that 4 5 × 4 4 = 1 9 8 0 < 2 0 0 0 . If we go higher, that is n = 4 6 we can see that 4 6 × 4 5 = 2 0 7 0 > 2 0 0 0 .
A very simple equation can be used.(n-1)+(n-2)+(n-3)+(n-4)+...+(n-n)=strings where n=number of people. If we know the number of strings we can solve the number of people or vice versa. Hope people like it.
i solved by thought on using formula how many diagonal in n-gon + n (connect the people outside (as like the side of n-gon)) < strings -> i mean this \frac {n(n-3)}{2} + n < 1000 and i actually i got 45 as my answer.. is it my true or actually i did mistake (means i only got lucky for solving this)??
n(n+1)/2 where n=44 is equl to 990 strings, 45 people are presnt
Let's pretend there are N people at the play. Then, the person A will be tied to N-1 people, using N-1 strings. The person B will be tied to N-2 people, using N-2 strings. The person C will be tied to N-3 people, using N-2 strings etc, till the Nth people will be tied to N-N people. The total of strings is
(N-1) + (N-2) + (N-3) + ... + (N-N).
Which could be written as
(N+N+N+...+N) - (1+2+3+...+N).
And knowing that (N+N+N+...+N) has N numbers N, we may say that
(N+N+N+...+N) - (1+2+3+...+N) = N² - [N(N+1)/2] = (N² - N)/2,
that needs to be less than 1000 strings.
(N²-N)/2 < 1000
N²-N-2000<0
Resulting in -45 < N < 46. Therefore, there are a maximum of 45 people.
Let the total number of people be n. For 1 person, we need (n-1) strings since he/she ties himself/herself with everyone else except for their own self, therefore "n-1". Since 1 person requires n-1 strings, n people will require n X (n-1) strings. But wait, here is the catch- if you observe carefully, for every pair of people, only 1 string is required but here we have counted it twice. Therefore, to delete the extra strings we divide the obtained expression by 2 : n(n-1)/2 (this gives no. of strings required) Now, its pretty simple after this: Just solve the inequality n(n-1)/2 <1000 , by solving quadratic equation or by trial method and you will get the answer as 45.
I Discovered that in a polygon -
The sum of no of sides + the sum of no of diagonals = n(n-1)/2
where n is the no of sides of the polygon.
Eg in a triangle - 3(3-1)/2 = 6/2 = 3 since a triangle has no diagonals it gives the no of sides - 3 + diagonals - 0 >>> 3+0 = 3
In Hexagon - 6(5)/2 = 15 .. Hexagon has 6 sides and 9 diagonals ... 6+9 = 15.
So I just used the formula which I just discovered.. Wow.. n(n-1)/2 < 2000 and got the value as 45... I Just Discovered a Formula to solve this... and for no of diagonals + sides.
Here the number of strings are less than 1000. And the number of strings we need for n people to do the necessary connections in n C 2 so n C 2<1000 => n(n-1) <2000 So we need to check for the product of two consecutive numbers whose product is very near to 2000 and less than 2000. So the pair is 45, 44.
So n = 45
use excel to calculate the combination nC2, by increasing the value of n and using the formula COMBIN(n,2) , for n=45 we will get 990 strings and for n=46 we get 1035 strings, so 45 is the answer
If there are 'n' persons, then the number of strings needed to connect them is n (n-1)/2 Given, n (n-1)/2<100, solving for "n" gives 45..
sorry, in 2nd line... n(n-1)<1000
lets think the number of people is X . a string is hold by two people only so the format of the combination will be (number of people=X)C2 . If there is is 3 people then the number of string will be 3C2=3 , if there is 4 people then the number of string will be 4C2 = 6 . as there is X number of people so the formula will be like
XC2 = X! / [ 2! ( n - 2 ) ! ] = X(X - 1 ) / 2 = 999 .
Here 999 come from the question , as it is said that number of person will be less than 1000 . from that formula we will get to value of X that are -44.201 ( which is inappropriate ) and other value is 45.201 . so the answer is 45 .
Problem Loading...
Note Loading...
Set Loading...
Let the number of people be n and since every 2 people out of n people should be connected by a string, so the number of strings that would be used is the value equal to the binomial coefficient ( 2 n ) or n C 2 . According to the problem we have ---
( 2 n ) < 1 0 0 0
⟹ 2 n ( n − 1 ) < 1 0 0 0 ⟹ n ( n − 1 ) < 2 0 0 0 ⟹ n 2 − n < 2 0 0 0 ⟹ n 2 − n − 2 0 0 0 < 0
Let us now assume that n 2 − n − 2 0 0 0 = 0 and solve it using the quadratic formula n = 2 a − b ± b 2 − 4 a c with a = 1 , b = ( − 1 ) , c = ( − 2 0 0 0 ) for this equation. Then, we get ---
n = 2 × 1 1 ± 1 − 4 . 1 . ( − 2 0 0 0 ) = 2 1 ± 1 + 8 0 0 0 = 2 1 ± 8 0 0 1
Since, n cannot be (-ve), we take the value as n = 2 1 ± 8 0 0 1 = 2 1 + 8 9 . 4 5 = 2 9 0 . 4 5 = 4 5 . 2 2 5
Since, we took the assumption that n 2 − n − 1 0 0 0 = 0 while actually we have n 2 − n − 1 0 0 0 < 0 , so we get n < 4 5 . 2 2 5
The value less than 4 5 . 2 2 5 and still the max value of n possible is 4 5 , so answer is = 4 5