May 5, 2026 Final

Problem 5 · Six pirates and 2026 coconuts

Simulating the split, rounding to the nearest integer.

Integer answer, at most 4 digits

Six pirates captured a treasure of 2026 coconuts on an island. They want to split the coconuts fairly and proceed as follows: all coconuts are placed in a pile and the pirates line up. One by one, the first pirate in line goes to the pile, divides the number of remaining coconuts by the number of remaining pirates (including himself), rounds the result up or down to the nearest integer, takes that many coconuts and sails home. Then it is the next pirate's turn, and so on. Determine how many coconuts the sixth pirate gets.

Copa Cangur · SCM Medium Closed answer