Divisibility rules/Rule 2 for 13 proof
Proof
This is based on divisibility by 11 rule or divisibility by 7 rule
Assume N has 3k digits, otherwise add zeros to the left. WLOG let where the are base-ten numbers. Then Rewriting as 3 digit numbers, that is, partitioning into 3 digit numbers ().
Since ,
This is the alternating sum of groups of 3 digit numbers of , which is what we wanted.