Solution:
Let A=anan−1…a1 and notice that 429=3⋅11⋅13.
Since the sum of the digits ∑ai≤11 and ∑ai is divisible by 3, we get ∑ai=3,6 or 9. As 11 divides A, we have
11∣an−an−1+an−2−an−3+…
in other words 11∣∑i oddai−∑i evenai. But
−9≤−∑ai≤i odd∑ai−i even∑ai≤∑ai≤9
so ∑i oddai−∑i evenai=0. It follows that ∑ai is even, so ∑ai=6 and ∑i oddai=∑i evenai=3.
The number 13 is a divisor of 1001, hence
13∣a3a2a1−a6a5a4+a9a8a7−a12a11a10+…
For each k=1,2,3,4,5,6, let sk be the sum of the digits ak+6m,m≥0; that is
s1=a1+a7+a13+… and so on.
With this notation, (1) rewrites as
13∣100(s3−s6)+10(s2−s5)+(s1−s4), or 13∣4(s6−s3)+3(s5−s2)+(s1−s4)
Let S3=s3−s6, S2=s2−s5, and S1=s1−s4. Recall that ∑i oddai=∑i evenai, which implies S2=S1+S3. Then
13∣4S3+3S2−S1=7S3+2S1⇒13∣49S3+14S1⇒13∣S1−3S3
Observe that ∣S1∣≤s1=∑i oddai=3 and likewise ∣S2∣,∣S3∣≤3. Then −13<S1−3S3<13 and consequently S1=3S3. Thus S2=4S3 and ∣S2∣≤3 yields S2=0 and then S1=S3=0. We have s1=s4, s2=s5, s3=s6 and s1+s2+s3=3, so the greatest number A is 30030000….