Saturday, 4 January 2020

proof that the sum of digits of natural number are divisible by 3 iff the number is




Im trying to prove that every natural number is divisble by three if and only if the sum of its digits are divisible by three.




First i proved by induction that 10n1 is divisible by 9 (and therefore 3) so i could use this in the next step, would this be valid...



ANy natural number can be given a decimal representation



Let sN



Let k0,k1...kn{0,...10}



S=k0+10k1+100k2+...kn10n




=9k1+99k2+...+kn(10n1)+(k0+k1+...kn)



All terms are divisible by 3 but the sum of the digits in S. Therefore Dividing S by 3 will leave the same remainder as dividing the digits bys 3.



Is this a valid proof of the claim? Thank you for your time


Answer



It's fine, except that after the last = sign you should have written9k1+99k2++n times999kn+(k0+k1++kn).


No comments:

Post a Comment

real analysis - How to find limhrightarrow0fracsin(ha)h

How to find lim without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...