Marbles with digit sum $1=(1,10,100,1000)$
Marbles with digit sum $2=(2,11,20,101,110,200, .2000)$
Maximum digit sum possible when number $=1999$
Digit Sum here is 28
Hence starting from 1 to 28 , one can get 28 different colored marbles.
$a^{2}+b^{2}+c^{2} \equiv 7(\text { mod8 })$ or, $a^{2}+b^{2}+c^{2}+1 \equiv 0(\text { mod8 })$ This further implies that 8 divides the sum of the remainders of $a^{2}, b^{2}, c^{2}$ and 1 on dividing by $8 .$ Now, square of any natural number gives remainders 0,1 or 4 on dividing by $8 .$ By trial and error, we see that the sum of the remainders is never divisible by $8,$ for any combination of remainders. Hence, proved.