retagged by
535 views

1 Answer

Best answer
5 votes
5 votes
Ok, the problem is just observation,

K friends are unknown two each other, means any two person from K are not connected ( not even directly or indirectly )

So it means,  graph is divided into K number of components   and each component may have that one person out of K

and each component may have any number of person + one person out of K.

And for any particular component all person involved in that component are friends either connected with direct edges or connected indirectly.

Then for maximum number of edges, best way is ( k - 1 ) component are alone, only have one person ,  and one component may have ( n - k + 1 ) person.

then maximum number of edges for that component having (n - k + 1 ) person is  C( n - k + 1 , 2 ).
selected by

Related questions

3 votes
3 votes
1 answer
1
0 votes
0 votes
0 answers
2
Swarnava Bose asked Jun 8, 2023
221 views
What is the total number of integer partitions ( unordered Summation) of the natural number 8 ?I am getting 22. Is it correct ?
0 votes
0 votes
1 answer
3
Swarnava Bose asked Jun 3, 2023
400 views
Consider the set of 4 -digit positive integers. How many of them have their digits in :-a) strictly decreasing order ?b) non decreasing order ?c) non increasing order ?...
0 votes
0 votes
0 answers
4
kidussss asked Jul 8, 2022
482 views
Solve the recurrence relation $a^{2}n-5a^{2}_{n-1}+4a^{2} _{n-2}=0$, if $a_{0}=4, a_{1}=13, n>1$