Quite small solution for 335 noticing an unproven pattern (runs in 5 mins).