Re:Divisibility by 7 is a Walk on a Graph (2009)
by mmastrac on Sunday November 08, 2015 @11:10PM
(#10531334)
You are subtracting enough 21s (ie: X * 21) to make the last digit zero. Since 21 is obviously a factor of 7, subtracting those should yield a factor of 7.
You can then divide by zero because if X is a factor of 7 and ends in zero, X / 10 is a factor of 7 as well.
You can then divide by zero because if X is a factor of 7 and ends in zero, X / 10 is a factor of 7 as well.