You are Here: Home >< Maths

# Combinatorics help? watch

1. I'm finding combinatorics to be a real pain in the backside at the moment! Even though the questions I'm trying to do are relatively simple, I'm not having problems with actually doing the maths but it's more about devising the problem in the first place.

There are some things I would like verified:

• The origin of the number of integer solutions to , both positive and non-negative. According to my textbook these are and respectively but I don't understand why they hold. I thought about putting n objects into r boxes and finding the possible ways of arranging the 'dividers' ('|') and the 'objects' ('O') (e.g. OOO | O | OOOO | OO) but I don't know how to deduce the formulae above - I just know that there are ways of arranging the objects and the dividers but I don't understand how to account for when the dividers are next to each other or at the ends (i.e. when we require positive integer solutions to the equation and we need no dividers next to each other).
• Gaining a better understanding of the reasoning needed, because in some situations I try drawing a diagram to help me to visualise the ideas further, but in some problems that is a very long-winded approach and it turns out that the reasoning was simple, but I wouldn't have thought to use that particular reasoning. (e.g. if you've got the letters ABCDEF, how many ways are there where A occurs before B and B occurs before C, how would I have immediately known to use the fact that there are 3! = 6 of ordering A, B and C, and if there are 6! ways of arranging A, B, C, D, E, F, then there are 6!/3! = 120 ways in which A comes before B and B comes before C).
2. (Original post by OL1V3R)
...
It's easiest to look at the non-negative one first of all.

You have r-1 dividers and n objects to put in.

So total number is n+r-1, hence your (n+r-1)! arrangements, but the objects are all the same and so are the dividers, so divide by n! and by (r-1)!, which gives you the desired result.

For the positive one.

Pre-allocate a single object to each box. Then you are left with n-r objects to allocate to r boxes, and are allowed empty slots (as there is an object already pre-allocated there), and this is similar to the previous case - have a think on the details.

And yeah, finding the right way to look at the problem is the key issue with these. Haven't got any tips I'm afraid.

### Related university courses

TSR Support Team

We have a brilliant team of more than 60 Support Team members looking after discussions on The Student Room, helping to make it a fun, safe and useful place to hang out.

This forum is supported by:
Updated: April 6, 2011
Today on TSR

### Exam Jam 2018

Join thousands of students this half term

Poll
Useful resources

### Maths Forum posting guidelines

Not sure where to post? Read the updated guidelines here

### How to use LaTex

Writing equations the easy way

### Study habits of A* students

Top tips from students who have already aced their exams

## Groups associated with this forum:

View associated groups

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE