|
Enigma 1464
Posted on: Tuesday 11/27, 2007; 8:38 PM
Generate a list of leap years in the 20th century during which the births can occur. The year 1900 is excluded because it was not a leap year.
Generate a list of all days during the above leap years in {yyyy, mm, dd} format.
Convert this list of days into DDMMYY format.
Select the cases which are square days.
Split this list into sublists for each year.
Select the cases that have 6 or more different square days.
Split the list of square days into sublists for each month.
Select from all of the cases with 6 or more square days only those for which there is but a single square day in that month. These are the cases where the birth and death days are forced to lie in different months. There is one case that satisfies this criterion, which is thus the grandfather's date of birth.
Permalink Notebook
|