Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

How do we get $r^n$ as the number of divisions possible. Please give a full description.

share|cite|improve this question

marked as duplicate by muzzlator, Ross Millikan, Thomas, vonbrand, Amzoti Apr 17 '13 at 16:25

This question was marked as an exact duplicate of an existing question.

See…, somewhere in the answers there is a description for why the formula for non-identical groups is $r^n$ and why it's different for when the objects are identical – muzzlator Apr 17 '13 at 15:45
If the groups are not labelled, the answer is not $r^n$. If they are labelled, the first object can be put into any one of the groups ($r$ choices), and for every such choice the second object can be put into any one of the groups, and so on. – André Nicolas Apr 17 '13 at 15:49

Assuming the groups are labeled $1,...,r$, think of your objects as $n$ people standing in a line. Each division then is a word in the letters $1,...,r$ of length $n$: give each guy a sign with his group number. Hence there are $r^n$ such partitions.

share|cite|improve this answer


$(a_1,a_2, \dots, a_n) \to (1,2, \dots r)$

Since, you can have any number of objects in one box.

$(a_1) \to (1,2, \dots r) =r$ ways

$(a_2) \to (1,2, \dots r)=r$ ways




$(a_n) \to (1,2, \dots r)= r$ ways

$(a_i) \to (1,2, \dots r)$ represents the possible slots for $a_i$.

share|cite|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.