Question

I have nine different programming textbooks on my bookshelf, five C++ and four Java. In how many ways can I arrange the books

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solution

Q1

Back-up Theory

Number of ways of arranging n distinct things among themselves (i.e.,, permutations)

= n!

= n(n - 1)(n - 2) …… 3.2.1..............................................................................................………………………………….….(1)

Values of n!can be directly obtained using Excel Function: Math & Trig FACT (Number)................................ (1a)

Number of ways of arranging n distinct things among themselves such that p out of n things are always together

= (n – p + 1)! x p! ………..………………………………………………………………….….(2)

Number of ways of arranging n distinct things among themselves such that p out of n things are always together and also (n – p) are always together

= 2!(n – p)! x p! ………..………………………………………………………………….….(3)

Now, to work out the solution,

Here

n = 9, ................................................................................................................................... (4a)

p = 5 (C++) ................................................................................................................................... (4b)

(n - p) = 4 (Java) ................................................................................................................................... (4c)

Part (a)

Vide (4a) and (1), number of arrangements = 9! = 362880 [vide (1a)] Answer 1

Part (b)

The arrangement needs to be: CJCJCJCJC only.

Now, C can occupy 5 odd positions in 5! ways and for each of these arrangements, J can occupy 4 even positions in 4! ways. Thus, total number of arrangements = 5! X 4! = 120 x 24 = 2880 Answer 2

Part (c)

Vide (4a), (4b) and (2), number of arrangements = 5! x 5! = 14400 Answer 3

Part (d)

Vide (4a), (4b), (4c) and (3), number of arrangements = 2! x 5! x 4! = 5760 Answer 4

DONE

Add a comment
Know the answer?
Add Answer to:
I have nine different programming textbooks on my bookshelf, five C++ and four Java. In how many ways can I arrange the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT