Fermat noticed that 26 is sandwiched between 25 and 27, one of which is a square number (25 = 52 = 5 × 5) and the other is a cube number (27 = 33 = 3 × 3 × 3). He searched for other numbers sandwiched between a square and a cube but failed to find any,