# Is there a simple math behind splitting multiple bills evenly across many people?

So, let's say you have 5 friends, and went on a trip together and over different occasions, different people paid for different things, with a plan of combining all the bills together at the end and splitting them evenly across all.

What is the best way of achieving this mathematically?

-
Can you explain why "Add up the total and divide by 5" isn't satisfactory? – Peter Taylor Sep 12 '11 at 12:13
hm. I guess what I want is to find out who needs to pay how much to whom, since each person would have paid different amount for different bills - some more, some less. Does that make sense? – ebae Sep 12 '11 at 12:22
@Peter: That wouldn't be satisfactory because there are $6$ people. – TMM Sep 12 '11 at 14:25
@Thijs, that's a good point. Oops. – Peter Taylor Sep 12 '11 at 14:55