Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

partition of simplex numbers? (likely not the correct terms)

4 views
Skip to first unread message

smoser

unread,
May 14, 2011, 12:02:43 AM5/14/11
to
Dear all,
I have a strange problem: imagine there are K cities (1,2,3,....,K)
and at each city there are just two shops (A and B). If there are N
people in total, how many ways are there that people can be allocated
to shop/ cities?

More formally, there are N+K-1 choose K-1 ways to allocate N people to
K cities (using the usual 'stars and bars' argument). But for each
way of allocating people to cities, there are a different number of
ways of allocating people to stores, in each city. For example, if
there are 4 people and 3 cities, then one allocation is:
zero people at the first city, zero people at the second city and four
people at the third city.
Within this allocation, there are 5 ways people could be at two
stores: 0 people at store A and 4 at store B; 1 person at store A and
3 at store B; ....

For the case of N=4 people, K=3 cities and two stores at each city, I
think there are 126 different ways of allocating people to
cityXstores. But is there a general formula?

Even more generally, if there were S stores at each of K cities, how
many ways are there allocate N people to cityXstores?

Any points would be most appreciated.

Thanks!!

Olivier Roussel

unread,
May 14, 2011, 3:53:53 AM5/14/11
to
smoser a écrit :

> Even more generally, if there were S stores at each of K cities, how
> many ways are there allocate N people to cityXstores?
If I understand your problem right, the number of ways to assign people
in S stores in K cities is nothing but
K*S+N-1 choose N

With K=3, N=4 and S=2, you get 126, the same number as yours.
But I may not have understood correctly your problem...
--
Olivier

smoser

unread,
May 14, 2011, 11:06:50 AM5/14/11
to

Doh! oh yes, you are quite right! Thanks! Sorry for the bother.
Scott

0 new messages