Skip to content
Astera Technology

Allocate whole units from proportional shares

State a remainder rule instead of rounding each share independently.

Compare the rule with concrete cases

Fictional seven indivisible review markers are shared at A:B=2:1. Compute ideal shares, floor each, then give remaining markers to the largest fractional remainders; ties use A before B. Ideals are 14/3 and 7/3, floors four and two, leaving one for A.

Filled synthetic modelling cases
GroupIdeal shareFloor / remainderFinal whole units
A14/34 / 2/35
B7/32 / 1/32
Total76 floors + 1 remainder unit7
Download editable CSV ↓

Work through the distinction

The floor stage alone loses one token. Independent ceiling would produce five and three, exceeding seven. The remainder rule preserves the total and deterministic allocation.

If the total is six with the same ratio, what are the shares?

Show the worked answer

A receives four and B two. Both ideal shares are whole, so no remainder allocation is needed.

Acceptance wording to adapt

Allocate the declared whole-unit total using ideal proportional shares, integer floors and largest remainders; use the stated tie order. Final shares must be nonnegative integers summing exactly to the input total.

Related resources