[math-fun] Beastly number problem