### Random Post

### Recent Posts

- Enigma 1065: Cute cubes
- Enigma 444: Rows and rows
- Puzzle 50: Football and addition
- Enigma 1066: Members of the clubs
- Enigma 443: The bells they are a-changing
- Tantalizer 455: Ballistico
- Tantalizer 456: Square deal
- Enigma 1067: Bye!
- Enigma 442b: Oh yes I did! Oh no you didn’t!
- Puzzle 51: A multiplication

### Recent Comments

Brian Gladman on Enigma 1065: Cute cubes | |

Jim Randell on Enigma 1065: Cute cubes | |

geoffrounce on Enigma 444: Rows and rows | |

Jim Randell on Enigma 444: Rows and rows | |

geoffrounce on Enigma 1611: Three sister… |

### Archives

### Categories

- article (11)
- enigma (1,167)
- misc (2)
- project euler (2)
- puzzle (42)
- site news (45)
- tantalizer (45)
- teaser (3)

### Site Stats

- 180,599 hits

Advertisements

Using units of 10p, if we have

npeople who drinkp_1, p_2, …, p_npints (lets say in descending order).Then, if

tis the total number of pints drunk:And the bounty for the

k-th person is:David, the person who drinks the most, gets zero bounty, so:

Also the total of all the bounties is 90 units:

So we can consider the divisors of 90.

This Python3 program runs in 54ms.

Solution:The guests drank (in decreasing numbers of pints): 15 pints (David), 11 pints, 9 pints, 7 pints, 3 pints.So, a total of 45 pints were consumed by the 5 guests. (Quite a boozy party).

The corresponding bounties are: 0p (for David), £1.20, £1.80, £2.40, £3.60.

I’m not quite sure why the setter wrote “from that information you can

probablywork out just how much each guest drank” – maybe he had had a couple of pints too many himself.