Problem

Source: JBMO 2008 Shortlist N11

Tags: JBMO, number theory



Determine the greatest number with $n$ digits in the decimal representation which is divisible by $429$ and has the sum of all digits less than or equal to $11$.