Inheritance: the fraction first, then the fixed amount

The second version of the coin puzzle, with every step: take 1/d of the remainder first, then a, 2a, 3a. Equations, proof for every child, examples and comparison of the two orders.

Section: Algorithms Updated:

Articles /inheritance-fraction-first-fixed-amount-second
Inheritance: the fraction first, then the fixed amount

16 min

Video

Audio: Italiano. You can change or turn off the subtitles.

In the inheritance puzzle, a small change to the rule changes the formulas. Here each child first takes a fraction of the amount available on their turn, then an increasing fixed amount. We develop the second version, distinct from the one that deducts the fixed amount first.

Illustration for the Algorithms section
Section: Algorithms

1. The second version of the puzzle

A father divides his inheritance among at least two children. The first receives one seventh of all the coins, plus 1 coin. The second receives one seventh of the coins left, plus 2 coins; the third, one seventh of the new remainder, plus 3; and so on. Nothing remains at the end and all receive the same amount. How many children are there, and how much does each receive?

The seventh is calculated on the remainder available before that turn’s fixed amount. If this remainder is R, the first calculation is R/7; only afterwards is the fixed amount added. Do not first subtract that amount from R.

S = R / 7 + k
S ≠ k + (R − k) / 7

2. The coins: solve the whole system

Let n be the number of children, S their common share and E the initial inheritance. Since the entire inheritance is split into n equal shares, E = nS. Before the second turn, the entire first share S has already been paid, not merely the fixed coin: nS − S = (n − 1)S remains.

E = nS
S = nS / 7 + 1
S = (n − 1)S / 7 + 2

Write the two conditions and multiply both sides of each by 7, eliminating the denominator immediately. The numbers 1 and 2 are also multiplied by 7. In the second equation expand (n − 1)S = nS − S:

7S = nS + 7

7S = (n − 1)S + 14
7S = nS − S + 14

In the first equation subtract nS from both sides and factor out S. In the second add S, then subtract nS and factor:

7S − nS = 7
(7 − n)S = 7

7S + S = nS + 14
8S − nS = 14
(8 − n)S = 14

Subtract the first equation from the second. The minus sign before the second bracket changes its signs: −(7 − n) = −7 + n. The terms containing n cancel:

(8 − n)S − (7 − n)S = 14 − 7
[(8 − n) − (7 − n)]S = 7
(8 − n − 7 + n)S = 7
S = 7

Substitute S = 7 into the first simplified equation. Divide by 7, add n to both sides and subtract 1. Finally calculate E = nS:

(7 − n) · 7 = 7
7 − n = 1
7 = 1 + n
6 = n
n = 6

E = nS = 6 · 7 = 42

3. Check all six turns

Now follow the distribution of the 42 coins, rather than relying only on the first two equations. Each row starts with the preceding row’s remainder:

ChildBefore the turnFractionFixed amountReceivesAfter the turn
14261735
23552728
32843721
42134714
5142577
671670

The sixth child also receives 7: one seventh of 7 is 1, to which they add 6. The inheritance is exhausted exactly. The last fraction is not zero: it is still 1 coin.

4. Replace 1, 2, 3 with a, 2a, 3a

Keep the fraction 1/7 and replace the unit increment with a number a > 0. The fixed amounts become a, 2a, 3a, … . Repeat the first two children’s equations:

S = nS / 7 + a
S = (n − 1)S / 7 + 2a

7S = nS + 7a
7S = nS − S + 14a

(7 − n)S = 7a
(8 − n)S = 14a

[(8 − n) − (7 − n)]S = 14a − 7a
S = 7a

Subtracting the equations gives S = 7a. Since 7a is positive, we may divide the first equation by 7a: there are still six children. Changing a rescales the amounts, not the number of children.

(7 − n) · 7a = 7a
7 − n = 1
n = 6
E = 6 · 7a = 42a

5. Generalize the fraction too: 1/d

Now take a fraction 1/d, fixed amounts a, 2a, 3a, …, at least two children, a > 0 and integer d ≥ 3. All amounts are exact, with no rounding. For indivisible coins, choose integer a: all the amounts we obtain will then be integers.

S = nS / d + a
S = (n − 1)S / d + 2a

The method is unchanged: multiply by d, expand the brackets and factor. Then subtract the first equation from the second:

dS = nS + da
dS = (n − 1)S + 2da = nS − S + 2da

(d − n)S = da
(d − n + 1)S = 2da

[(d − n + 1) − (d − n)]S = 2da − da
(d − n + 1 − d + n)S = da
S = da

Substitute S = da into the first equation. Dividing by da is valid because d and a are positive. We obtain the number of children and the total inheritance:

(d − n) · da = da
d − n = 1
d = 1 + n
n = d − 1

E = nS = (d − 1)da
E = d(d − 1)a

6. The proof for every child

Before turn k, the first k − 1 children have each received S. If the preceding shares are correct, the remainder is therefore (n − k + 1)S. The child takes 1/d of this remainder first, then ka. Write and expand the condition:

R = (n − k + 1)S
S = (n − k + 1)S / d + ka
dS = (n − k + 1)S + dka
(d − n + k − 1)S = dka
(d − n − 1)S + kS = kda
(d − n − 1)S = k(da − S)

Why the bracket must be zero: every step

Within the same problem, d, n, a and S are fixed: the denominator, number of children, increment and common share do not change from one child to another. Only k changes, identifying the child being considered. The quantity on the left of the identity therefore stays the same:

(d − n − 1)S = k(da − S)

1. The first child: k = 1

Replace k with 1. One copy of da − S is simply da − S:

(d − n − 1)S = da − S

2. The second child: k = 2

Since there are at least two children, the case k = 2 must also hold. The left side is unchanged; the right side is twice the same quantity:

(d − n − 1)S = 2(da − S)

The same left-hand quantity would therefore equal both da − S and its double. This is possible only if da − S is zero. We are not assuming the left side is already zero: we deduce it by comparing the two equalities.

3. Subtract the first equality from the second

On the left we subtract two identical quantities, giving zero. On the right, two copies of da − S minus one copy leave a single copy:

(d − n − 1)S − (d − n − 1)S
= 2(da − S) − (da − S)

0 = da − S
S = da

A number equals its own double only when it is zero.

4. Return to the identity and find n

We now know that da − S = 0. In the original identity the right side therefore becomes k · 0 = 0, whatever k is:

(d − n − 1)S = k · 0 = 0

Each child receives a positive amount: S > 0, so S is not zero. For the product to be zero, its other factor must vanish. We can divide by S and continue:

d − n − 1 = 0
d − n = 1
n = d − 1

We have thus derived the necessary conditions S = da and n = d − 1. The comparison requires at least two children and does not replace checking the third, fourth and every other child: that is the proof for turn k which follows.

We must still prove these values really suffice. Set n = d − 1, S = da and E = nS. If the preceding shares equal S, the remainder and the share on turn k become:

R = (n − k + 1)S = (d − k)da
R / d + ka = (d − k)a + ka
             = da − ka + ka
             = da = S

The first turn starts the argument: there are no preceding shares and E = nS. The calculation shows that this child receives S; after subtracting S, the remainder has the required form for the next turn. Repeating proves that every child receives the same amount, not just the first two.

On the last turn, k = n = d − 1, the remaining amount is S = da. The child takes a as the fraction, then (d − 1)a as the fixed amount: a total of da. Nothing remains. All operations are feasible: after the fraction and fixed amount, d(d − k − 1)a remains, which is nonnegative for 1 ≤ k ≤ d − 1.

k = d − 1
R = da
R / d = a
ka = (d − 1)a
S = a + (d − 1)a = da
R − S = 0

7. Four examples with different data

Example 1: a = 3, d = 7

The fixed amounts are 3, 6, 9, … units; before each one, take 1/7 of the available remainder. Everyone receives the same amount and nothing remains. Find n, S and E.

n = 7 − 1 = 6
S = 7 · 3 = 21
E = 6 · 21 = 126

The next three lines check the first, second and last child, in that order:

126 / 7 + 3 = 18 + 3 = 21
105 / 7 + 6 = 15 + 6 = 21
21 / 7 + 18 = 3 + 18 = 21

Example 2: a = 5, d = 4

The fixed amounts are 5, 10, 15, … units; before each one, take 1/4 of the available remainder. Everyone receives the same amount and nothing remains. Find n, S and E.

n = 4 − 1 = 3
S = 4 · 5 = 20
E = 3 · 20 = 60

The next three lines check the first, second and last child, in that order:

60 / 4 + 5 = 15 + 5 = 20
40 / 4 + 10 = 10 + 10 = 20
20 / 4 + 15 = 5 + 15 = 20

Example 3: a = 2, d = 5

The fixed amounts are 2, 4, 6, … units; before each one, take 1/5 of the available remainder. Everyone receives the same amount and nothing remains. Find n, S and E.

n = 5 − 1 = 4
S = 5 · 2 = 10
E = 4 · 10 = 40

The next three lines check the first, second and last child, in that order:

40 / 5 + 2 = 8 + 2 = 10
30 / 5 + 4 = 6 + 4 = 10
10 / 5 + 8 = 2 + 8 = 10

Example 4: a = 13, d = 11

The fixed amounts are 13, 26, 39, … units; before each one, take 1/11 of the available remainder. Everyone receives the same amount and nothing remains. Find n, S and E.

n = 11 − 1 = 10
S = 11 · 13 = 143
E = 10 · 143 = 1430

The next three lines check the first, second and last child, in that order:

1430 / 11 + 13 = 130 + 13 = 143
1287 / 11 + 26 = 117 + 26 = 143
143 / 11 + 130 = 13 + 130 = 143

8. Why the two orders are not equivalent

Addition has not stopped being commutative: the amount on which the fraction is calculated has changed. Let R be the remainder before a turn and compare the rules:

QuantityFixed amount firstFraction first
Share on turn kka + (R − ka)/dR/d + ka
Number of childrend − 1d − 1
Common share(d − 1)ada
Total inheritance(d − 1)²ad(d − 1)a

For the same a and d, the number of children agrees, but each child receives an extra a in the new version, and the total increases by (d − 1)a. For a = 1 and d = 7, the first order gives 6 children with 6 coins each, total 36; the second gives 6 children with 7 coins each, total 42. If instead we compare the operations on the same remainder R, their difference on that turn is ka/d:

(R/d + ka) − [ka + (R − ka)/d]
= R/d + ka − ka − R/d + ka/d
= ka/d

9. Assumptions and the one-child case

Comparing the first and second children genuinely requires at least two children. The puzzle explicitly includes a second child. If we allowed just one child, we would need to solve a separate equation:

n = 1
S = E
E = E/d + a
dE = E + da
(d − 1)E = da
E = da / (d − 1)

For example, with a = 6 and d = 7, one child with E = 7 is possible: they take 7/7 + 6 = 7. We therefore cannot impose n = d − 1 on that case. In the original puzzle a = 1 would instead give E = 7/6, not an integer number of coins. For d = 2 there is no solution with at least two children: the formula would require n = 1. Our assumptions also exclude a = 0.

10. Exercises with hidden solutions

Use the rule ‘fraction first, fixed amount second’ and always assume at least two children. Open each solution only when you want to check it.

1. A different increment

The fixed amounts are 4, 8, 12, … and the fraction is 1/7 of the remainder before the fixed amount. Find n, S and E.

Solution and steps
a = 4, d = 7
n = 7 − 1 = 6
S = 7 · 4 = 28
E = 6 · 28 = 168

2. A different fraction

The fixed amounts are 3, 6, 9, … and the fraction is 1/6 of the remainder before the fixed amount. Find n, S and E.

Solution and steps
a = 3, d = 6
n = 6 − 1 = 5
S = 6 · 3 = 18
E = 5 · 18 = 90

3. Recover the parameters

Five children each receive 30 units. What are d, a and E if they follow this rule?

Solution and steps

From n = d − 1 obtain d = n + 1. From S = da obtain a = S/d. The total is E = nS:

d = n + 1 = 5 + 1 = 6
a = S/d = 30/6 = 5
E = nS = 5 · 30 = 150

11. Conclusions and related articles

The second version thus has its own rule: the denominator determines the number of children and the increment a determines the scale of the amounts. The equations find the values; checking turn k proves why they work until the inheritance is exhausted. Complete the comparison with the two related articles:

n = d − 1
S = da
E = d(d − 1)a