Assignment:
Derive rules to test whether a number is divisible by N, where N ranges from 2 to 13. E.g. A number is divisible by 3 if the sum of the digits is divisible by 3. Show that a palindromic number which has an even number of digits is always divisible by 11.
Provide complete and step by step solution for the question and show calculations and use formulas.