Given a and b, any integer can be written in the form a=qb+r, where q,b,a and r are integers, and r is the remainder when a is divided by b.
If m is a factor of n, m divides n. This can be represented as m∣n
A linear combination of a and b is a number in the form xa+yb, where x and y are integers
k∣a and k∣b means that k∣(xa+yb)
Euclid’s lemma states that if p is prime and p∣ab, then p∣a or p∣b.
If n>1 and n∣(a−b), then a≡b(modn).
The set of integers modulo n can be represented by Zn.
If a≡A(modn) and b≡B(modn), then:
a+b≡A+B(modn)
a−b≡A−B(modn)
ab≡AB(modn)
A unit in modulo n is a number that has an inverse in mod n, such that a×a−1≡1(modn). An inverse can only be found if a and n are coprime.
If a is a unit modulo n, the order of a mod n is the smallest integer k such that ak≡1(modn).
A linear congruence is in the form ax+b≡cx+d(modn).
When ax≡b(modn), if a and n are coprime, we can multiply by the inverse of a to find the value of x(modn).
For ax≡b(modn), if a and n are not coprime, either:
hcf(a,n)∤b, which means there are no solutions.
hcf(a,n)∣b, which means that there are multiple solutions. We can divide all values in the equation by hcf(a,n), and solve the resulting relation. We can then add the new value of n to the first solution to find all others.
The following are some common divisibility tests:
2 - check that the units digit is even.
3 - check that the sum of all digits is divisible by 3.
4 - check that the last2 digits are divisible by 4.
5 - check that the last digit is a 0 or a 5.
8 - check that the last3 digits are divisible by 8.
9 - check that the sum of the digits is divisible by 9.
11 - check that the alternatingsum of the digits is divisible by 11.
To design a divisibility test for a number n such that hcf(n,10)=1:
Start with 10a+b.
Find the inverse of 10 in n.
If possible, choose the negative inverse of 10 in n.
Multiply the expression by the inverse.
When testing x for divisibility by n using the expressions 10a+b and a+mb:
Set 10a+b=x.
Find the integers a and b.
Put a and b into the expression a+mb.
Set a+mb=x.
Repeat until the result is clearly either divisible by n or notdivisible by n.
In number base n, only digits upto n can be used. If n is greaterthan10, we can use letters to represent further digits (A,B,C…).
In number base n, each digit in base n is multiplied by an increasingpower of n, starting with 0 for the units digit, and then addedtogether to convert to base 10.
To convert to base n, divide the number by n, and the remainder is the firstdigit in the representation in base n. Repeat the process with the integerpart of the result until it becomes 0.