Let a=an........a3a2a1 be an integer
[Note a is not the product of a1,a2,a3,........anbuta1,a2,a3,........an are digits in the value of a. For example 368 is not the product of 3, 6 and 8 rather 3, 6, 8 are digits in value of 368
=8+6×10+3×(10)2 ]
a=an....a3a2a1
=a1+(10)1a2+(10)2a3+(10)3a4+.....+(10)n−1an
=a1+10a2+100a3+1000a4+.........
=a1+(a2+9a2)+(a3+99a3)+(a4+999a4)+..........
=(a1+a2+a3+a4+.........)+(9a2+99a3+999a4+........) .....(1)
or a=S+(a2+11a3+111a4+.....)
∴9|(a−S) .......(2)
Part 1:
a is divisible by 9
i.e., 9|a .........(3)
∴9|[a−(a−S)] [From (2) and (3)]
i.e., 9|S i.e., sum of digits is divisible by 9
Part 2:
S (sum of digits) is divisible by 9
i.e., 9|S .... (4)
From (2) and (4), 9|[(a−S)+S]
i.e., 9|a
i.e., the integer a is divisible by 9.