Menu Close

say-you-have-3-different-books-about-mathematics-4-different-books-about-physics-and-5-different-books-about-chemistry-in-how-many-ways-can-you-arrange-them-in-a-shelf-such-that-no-two-books-f




Question Number 196143 by mr W last updated on 18/Aug/23
say you have 3 (different) books  about mathematics, 4 (different)  books about physics and 5 (different)  books about chemistry. in how many  ways can you arrange them in a shelf  such that no two books from the same  subject are adjacent?
sayyouhave3(different)booksaboutmathematics,4(different)booksaboutphysicsand5(different)booksaboutchemistry.inhowmanywayscanyouarrangetheminashelfsuchthatnotwobooksfromthesamesubjectareadjacent?
Answered by liuxinnan last updated on 19/Aug/23
Commented by mr W last updated on 19/Aug/23
thanks for trying sir! it′s not easy to  follow your solution. can you please  recheck your calculation? i got a  slightly different result.
thanksfortryingsir!itsnoteasytofollowyoursolution.canyoupleaserecheckyourcalculation?igotaslightlydifferentresult.
Commented by mr W last updated on 19/Aug/23
i have found your mistakes:
ihavefoundyourmistakes:
Commented by mr W last updated on 19/Aug/23
Commented by mr W last updated on 19/Aug/23
error 1: MP can also be PM.  error 2: PMPM can also be MPMP.
error1:MPcanalsobePM.error2:PMPMcanalsobeMPMP.
Commented by liuxinnan last updated on 19/Aug/23
I can not find out me errot too
Icannotfindoutmeerrottoo
Commented by liuxinnan last updated on 20/Aug/23
thanks sir
thankssir
Answered by mr W last updated on 19/Aug/23
in following   ♣ = a book for physics  ⧫ = a book for mathematics  ★= a book for chemistry    we arrange at first the 5 books for  chemistry:  □★⊡★⊡★⊡★⊡★□    in each of the □ boxes we can put  nothing, i.e. empty ⇔0  ♣ ⇔1  ⧫  ⇔100  ♣⧫ ⇔101   (2×)  ♣⧫♣ ⇔102   ⧫♣⧫ ⇔201  ♣⧫♣⧫ ⇔202   (2×)  ♣⧫♣⧫♣ ⇔203   ⧫♣⧫♣⧫ ⇔302  ♣⧫♣⧫♣⧫ ⇔303   (2×)  ♣⧫♣⧫♣⧫♣ ⇔304    in each of the ⊡ boxes we can do as  above, but empty is not allowed.    so we get a generating function  (1+x+x^(100) +2x^(101) +x^(102) +x^(201) +2x^(202) +x^(203) +x^(302) +2x^(303) +x^(304) )^2 (x+x^(100) +2x^(101) +x^(102) +x^(201) +2x^(202) +x^(203) +x^(302) +2x^(303) +x^(304) )^4   whose coefficient of term x^(304)  is 588.  ⇒total number of ways is       588×5!×4!×3!=10 160 640
infollowing=abookforphysics=abookformathematics=abookforchemistrywearrangeatfirstthe5booksforchemistry:◻◻ineachofthe◻boxeswecanputnothing,i.e.empty01100101(2×)102201202(2×)203302303(2×)304ineachoftheboxeswecandoasabove,butemptyisnotallowed.sowegetageneratingfunction(1+x+x100+2x101+x102+x201+2x202+x203+x302+2x303+x304)2(x+x100+2x101+x102+x201+2x202+x203+x302+2x303+x304)4whosecoefficientoftermx304is588.totalnumberofwaysis588×5!×4!×3!=10160640
Commented by mr W last updated on 19/Aug/23

Leave a Reply

Your email address will not be published. Required fields are marked *