Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store
seo-qna
SearchIcon
banner

Number of ways in which 8 people can be arranged in a line if A and B must be next each other and C must be somewhere behind D is equal to
A.10080
B.5040
C.5050
D.10100

Answer
VerifiedVerified
423.6k+ views
like imagedislike image
Hint: A permutation is a mathematical technique that determines the number of possible arrangements in a collection of items where the order of the selection does not matter. The formula for a permutation is nPr=n!(nr)!where, n is the total items in the set and ris the number of items taken for the permutation.
Here we have to assume the people who are sitting together as one. Since C must be somewhere behind D. Therefore, we need to consider all cases according to positions of D. Then find the number of ways the people sit together. Then the total number of ways is the number of ways the people sit together times the sum of the ways obtained in all possible cases.

Complete step-by-step answer:
Given A and B must be next to each other and C must be somewhere behind D.
Since A and B are next to each other so we assume them as one. So now total people will be 7.
Now C should be somewhere behind D, therefore we need to consider all cases according to positions of D.
case(i): When D is at first position C can be placed at any remaining 6 positions=Total ways to arrange remaining 6 people (D is at first) =6!.
case(ii): When D is at second position C can be placed only at remaining 5 positions after D, so at first position there can be only 5 people=Total ways will be=5P1×5!=5×5!.
case(iii): When D is at third position C can be placed only at remaining 4 positions after D, so at first and second there can be only 5P2=5×4 choices=Total ways will be=5×4×4!
Similarly,
case(iv): When D is at fourth position, Total ways =5P3×3!=5×4×3×3!
case(v): When D is at fifth position, Total ways==5P4×2!=5×4×3×2×2!
case(vi): When D is at sixth position, Total ways=5=5P5×1!=5×4×3×2×1×1!
case(vii): D can't be at seventh position because that's the last position so then C can't be behind D.
Now as A and B together can sit in two ways AB or BA.
Hence, total number of ways=2×{(i)+(ii)+(iii)+(iv)+(v)+(vi)}=2×{6!+5×5!+5×4×4!+5×4×3×3!+5×4×3×2×2!+5×4×3×2×1×1!}=2×{720+600+480+360+240+120}=5040
Hence, the Option (B) is correct.
So, the correct answer is “Option B”.

Note: Note that the factorial of n is denoted as n!. The factorial of a natural number is a number multiplied by "number minus one", then by "number minus two", and so on till 1 i.e., n!=n×(n1)×(n1)×(n2)××2×1 .
A combination is a mathematical technique that determines the number of possible arrangements in a collection of items where we select the items in any order. Using the combination formula nCr=n!(nr)!r!where, n is the total items in the set and ris the number of items taken for the permutation find the value of n.
Latest Vedantu courses for you
Grade 10 | CBSE | SCHOOL | English
Vedantu 10 CBSE Pro Course - (2025-26)
calendar iconAcademic year 2025-26
language iconENGLISH
book iconUnlimited access till final school exam
tick
School Full course for CBSE students
PhysicsPhysics
Social scienceSocial science
ChemistryChemistry
MathsMaths
BiologyBiology
EnglishEnglish
₹41,000 (9% Off)
₹37,300 per year
Select and buy