Brain-Teaser 763: Old Father Prime
From The Sunday Times, 29th February 1976 [link]
Albert Prime will be joining us again today [*] for the 15th celebration of the anniversary of his birth since he was home on leave during the 1914-18 war.
On that occasion, his son David’s age plus his brother Bert’s age was equal to his brother Charlie’s age; [and] Bert’s age plus Charlie’s age was equal to Albert’s age.
All the ages except Albert’s were prime numbers and Albert’s was the cube of David’s. All four were born on 29th February in different years and the ages above are taken by counting how many 29th Februarys they have celebrated (for example, a man born on 29th February 1956 has an age of 5 today [*]).
In what year was Albert born?
Note: [*] This puzzle was originally published on 29th February 1976.
This puzzle is included in the book The Sunday Times Book of Brain-Teasers: Book 1 (1980).
The puzzle text above is taken from the book.
[teaser763]







Jim Randell 9:26 am on 11 May 2021 Permalink |
B, C, D are prime, and A = D³ = B + C, also: B + D = C.
So, given a value for D we can calculate the other values as follows:
And then determine the birth years.
This Python program runs in 51ms.
from datetime import date from enigma import (primes, cb, div, printf) # find the year of the k'th 29th February before year y def year(k, y): while True: try: d = date(y, 2, 29) if k == 0: return y k -= 1 except ValueError: pass y -= 1 # choose a value for D for D in primes.between(2, 100): # calculate A A = cb(D) if A > 100: break # calculate B B = div(A - D, 2) if B not in primes: continue # calculate C C = B + D if C not in primes: continue printf("[A={A} B={B} C={C} D={D}]") # calculate birth years y = year(15, 1976) assert 1914 <= y <= 1918 (a, b, c, d) = (year(x, y) for x in (A, B, C, D)) printf("born: A={a} B={b} C={c} D={d} [y={y}]")Solution: Albert was born in 1880.
Charlie was born in 1892. Bert was born in 1904. David was born in 1908.
Note that 1900 was not a leap year.
In 1916, Albert celebrated his 8th anniversary leap day (he was 36). Charlie celebrated his 5th anniversary leap day (he was 24). Bert celebrated his 3rd anniversary leap day (he was 12). David celebrated his 2nd anniversary leap day (he was 8).
The fact: B + D = C and these values are all primes, implies that one of them must be 2. D is the obvious candidate, and the other values follow immediately. (D has to be a prime, whose cube is also relatively small, so there are very few options for D anyway).
The only remaining wrinkle is remembering to skip the year 1900 when counting 8 leap years back from 1916.
LikeLike