Live Quiz Arena
🎁 1 Free Round Daily
⚡ Enter ArenaQuestion
← Logic & PuzzlesA server distributes 10 identical cookies among 3 unique users with each user receiving at least one cookie. Which formula counts the number of possible cookie distributions?
A)Stars and bars (n+k-1 choose k-1)
B)Stars and bars (n-1 choose k-1)✓
C)Inclusion-exclusion principle (all minus none)
D)Permutations with repetitions (n!/r!s!)
💡 Explanation
The correct formula is stars and bars with pre-allocation, because each user must get at least one cookie; therefore, we subtract 1 from n before applying the stars and bars formula, rather than using the standard stars and bars without pre-allocation.
🏆 Up to £1,000 monthly prize pool
Ready for the live challenge? Join the next global round now.
*Terms apply. Skill-based competition.
Related Questions
Browse Logic & Puzzles →- A computationally limited sensor transmits encrypted data alongside a zero-knowledge proof to a central server. Which outcome indicates a secure and valid data transmission?
- An automated warehouse uses a robotic arm to sort boxes. If the arm's spatial calibration drifts, causing it to misplace boxes, which consequence is most likely?
- If a database employs relational algebra to manage data, which consequence follows when two tables, representing sets, have their common elements extracted using set theory?
- If a database query returns all customer records where the 'city' field is either 'New York' OR 'Los Angeles', which set theory operation models this?
- Which outcome occurs when players in a two-player game repeatedly optimize their matrix-defined strategies?
- If a web server experiences a power outage independent of network connectivity, which outcome reflects their conditional independence?
