Junior/Intermediate Number Theory Tips
Total Page:16
File Type:pdf, Size:1020Kb
Junior/Intermediate Number Theory Tips
(Last updated 27th July 2013)
Key Terms:
Coprime/Relatively Prime: When two numbers don’t share any common factors, i.e. their Greatest Common Divisor is 1.
Integer: A whole number.
Positive Integer: Does not include 0. i.e. 1 or more.
Prime: Note that 1 is NOT prime!
Fundamental Law of Arithmetic: Every integer can be expressed as a product of prime factors in one way only. E.g. can only be expressed as a product of primes as .
means that divides . e.g. .
Divisibility Rules:
Divisible By: Properties 2 Last digit even 3 Digits add up to multiple of 3 4 Last two digits a multiple of 4 5 Last digit 0 or 5 6 Divisible by 2 and 3 (so has properties of each) 7 We could subtract twice the units digit from the remaining digits and keep applying. If the result is a multiple of 7 the original number is a multiple of 7: e.g. 0 is a multiple of 7 so 11529 is. However, since we need to apply as many steps as there are digits, the trick is only really useful to mentally verify that 3 or 4 digit numbers are divisible by 7 (i.e. useful for the JMC/IMC, but not so useful elsewhere). 8 Last three digits multiple of 8 9 Digits add up to multiple of 9 10 Last digit 0 11 Add up every other digit and subtract remaining digits. Result is a multiple of 11. e.g. 12 Divisible by 3 and 4 (so has properties of each).
For divisibility by a larger number, we have the divisibility properties of all this number’s factors. E.g. If divisible by 24, then it must also be divisible by 3 and 8, so the digits add up to a multiple of 3, and the last three digits must be divisible by 8.
Oddness/Evenness , , (and thus an odd number to any positive integer power is odd)
Spotting when expressions/numbers are odd are even has a variety of uses:
o We might want to show we have a contradiction in an equation, if we say show the LHS is even and the RHS is odd.
o It helps us constraint variables. E.g. If , then because the RHS is even, is even when and is always odd, then would have to be odd and thus .
o If we knew a variable was odd, we could replace it with for some integer and hopefully constrain values of variables further or prove some assertion.
Using Algebra
If the digits of a 3-digit number are “”, then the value of the number is . This might allow us to do further manipulation.
Note also that and and . In some questions we might have to ‘try out’ possible values for the digits to see if they work for a particular problem. But we’ll often find we only have limited possibilities that need testing.
An even number can be represented as where is any integer. Similarly an odd number can be represented as . Similarly, we could represent a square number using .
For questions where you’re asked to find integer values for variables so that some expression is also an integer, just create a new integer variable. e.g. “Find the form of all integers such that is also an integer”, then a good start would be to say for some integer , and then . Now we have a Diophantine Equation (see below). Using our ‘oddness/evenness’ tip above, we can see the LHS is odd, so the RHS must be odd. If is odd, since , then must be odd. So we could replace it with where is an integer. This gives , thus . Thus is twice the product of any two consecutive numbers.
Remainders and Modular Arithmetic
If divided by gives a remainder of , then must be divisible by . e.g. If divided by 10 gives a remainder of , then clearly is divisible by .
If 17 and 7 give the same remainder when divided by 5, we can write . The symbol means ‘congruent to’. It means that is equivalent to 2 is ‘modulo-5 arithmetic’. In modular arithmetic, numbers have the same value if their remainders are the same. So far example, the bearings and are equivalent (in modulo-360 arithmetic), and we can say that .
You don’t need to know modular arithmetic for JMO/IMO, it’ll become more useful in the Senior version. However, it can be incredibly useful for number theory problems.
Laws of modular arithmetic: o If , then . e.g. We know that 6 and 11 have the same remainder when divided by 5, i.e. . We could scale by 3 for example, so 18 and 33 must have the same remainder when divided by 5.
o If then . Suppose we wanted to know the last digit of . Then working in modulo-10 arithmetic would give us the units digit (i.e. finding the remainder when we divide by 10). Now because 49 gives a remainder of 9 when divided by 10. Also, and . At this point, we could use the above law. , so . We’ve found the 7 to the power of any multiple of 4 gives a remainder of 1 when divided by 10. Since 100 is a multiple of 4, the units digit of is 1. This trick is useful whenever we have a remainder of 1, because 1 to any power is still 1.
Using Prime Factorisations
Finding the prime factorisation of a number often helps:
A number is square of all the powers/indices in the prime factorisation are even. e.g. is a square number, because . Similarly, a number is a cube if the indices are multiples of 3, and so on. We could then easily work the smallest multiple of a given number that will be cube say. If , then be multiplying by we’d have a cube.
We can work out the number of factors of a number. Say we have . Any factor of 600 will be composed of up to three 2s, up to one 3, and up to two 5s, multiplied together. That’s 4 possibilities for the number of twos used in a factor, 2 possibilities for the number of threes and 3 for the number of fives. That’s factors. Sometimes you might have to think about this backwards: if a number has a certain number of factors, what number could it be?
Note that we get a 0 on the end of a number each time we have a factor of 10. That’s equivalent to each time we have a prime factor pair of 2 and 5. We can easily determine the number 0s therefore by looking at the prime factorisation and taking the minimum power out of the 2 and the 5.
Diophantine Equations
These are just equations where you want to find integer solutions for the variables.
Often the key to these questions is getting your equation in the form of a product of expressions being equal to some integer value. e.g. If we wanted to find positive integer solutions to , then by considering the factor pairs of 12 and what and could therefore be, we get .
The challenge is often getting your equation in this form:
Suppose we had . If we had some factorisation, and expanding it gave us the terms , and , then what could that factorisation be? sounds like it might work. We find that . Therefore , and thus . We’ve successfully got our equation in the form we have a product of expressions, so can now just consider the factor pairs of 10. Similarly, suppose we had . Then multiplying through by so that we don’t have to deal with fractions, we get . So . The trick here is to multiply through by the coefficient of the product of the variables, i.e. . Then Then notice that . Thus . Because we have the prime factorisation of the RHS, we can quickly obtain the factor pairs (e.g. ).
Sometimes we can use the difference of two squares to factorise. Suppose we want to find integer solutions for . Then . By considering factor pairs of 200, we get and so on.
One final common way to factorise is to complete the square. Suppose we were asked to find the integer values of for which is a perfect square. for some integer . Completing the square:
And again, we’ve successfully produced a product of expressions. Conveniently, 89 is prime, so and .
Don’t forget that the factor pair could be negative! e.g. If we wanted positive integer solutions for , then since , it could be that and , giving . You’ll lose marks if you forget these solutions.
Linear Diophantine Equations
These are equations of the form where are constants. It’s called ‘linear’ because it’s the equation of a straight line.
Suppose we had , and and have to be positive integers. We could try values for one variable and see if they work for the other. e.g. When , we find . When , we have , which has no integer solution. In fact we’ll find that each time we increase by 3 (starting at our first solution of ), we’ll have another solution, because will increase by a multiple of 3 (i.e. 12), which can be ‘absorbed’ by the term which will decrease. We know the maximum can be is rounded down, which is 7.
If the lone constant is a multiple of one of the numbers in front of (i.e. the ‘coefficients’ of) the or , we can apply a clever trick to quicken our search! e.g. Suppose that and we’re again looking for positive integer solutions. We can rewrite this as:
We can immediately see that is at most 9, otherwise the RHS will be 0 or negative, and so wouldn’t be positive on the LHS. If we think about factors on each side, the LHS is divisible by 4. On the RHS, this factor of 4 certainly doesn’t appear in the 13, so must be divisible by 4. This means that must be 2 or 6. We can then easily find for each of these.
The Factorial Function
. For example . We would say this as “4 factorial”. If we wanted the number of 0s at the end of , then recall we get a 0 at the end each time we have a prime factor pair of 2 and 5. There will be more 2s then 5s in the prime factorisation of , so count the number of 5s. In , we’ll have a factor of 5 for each multiple of 5 in the product. There’s 20 of these. But we’ll get an additional 5 for each multiple of 25, because , i.e. contributing two 5s rather than 1. There’s 4 multiples of 25 up to 100. Thus we have in the prime factorisation of and thus 24 zeros at the end.
Miscellaneous Tips
If you have consecutive numbers or numbers which are evenly spaced, represent either the middle number or first number as say . e.g. If you have 3 consecutive numbers, we can represent these as and . This tends to make the algebra simpler (say if we added or multiplied these expressions) than if we were to use and .
Every 3 numbers is divisible by 3. So for example must be divisible by 3 because one of , and must be divisible by 3. Similarly every 4th number is divisible by 4 and so on.
Suppose you’re trying to find an integer that makes some fractional expression an integer. e.g. Find an integer such that is also an integer. There’s two ways to do this. If you happen to know algebraic long division, then use that! But presuming you don’t notice that if we had , we’d have an integer because , which is divisible by .
This whole expression is an integer when divides 3. If say was positive, then this would only work when .
A squared number is always positive. Suppose we had where and are positive integers. Then since the RHS must be positive, . Dividing by we have .
Sometimes we can use the quadratic formula. Recall that when , then the solutions for are . Above, we had . Putting this in a quadratic form, where the ‘ here is instead , we have , so:
Thus for to be an integer, is an integer. We could then use the approach we saw on Page 2.
Theorems in Number Theory:
1. Euclid’s First Theorem: If for integers and and a prime , we have that , then either or .
2. Euclid’s Second Theorem: There are an infinite number of prime numbers. Proof by contradiction: Suppose there were a finite number of prime numbers, , , ... . Then consider . This can’t be divisible by any of the primes because the remainder will always be 1. Thus either the new number is prime, or its prime factorisation consists only of new prime numbers. Hence we can always discover new primes given a finite list.
3. Fermat’s Last Theorem: If where are positive integers, then the equation cannot be satisfied when . If , then we’d have , for which there’s infinitely many solutions, e.g. (these are known as Pythagorean Triples, because the can be the lengths of a right-angled triangle, satisfying Pythagoras’ Theorem). However, the sum of two cubes can never be a cube, and so on. This actually has some practical use! If somehow we managed to factorise an equation to yield (where are integers), then because by Fermat’s Last Theorem, there can’t be any positive integer values for and and , and so we only have a solution when , i.e , and . This gives us the solution , , .
4. Fermat’s Little Theorem: If is an integer and is prime, then . Equivalently, For example, suppose we had . Then we know that the remainder will be 1 when we divide by 13. Similarly, we could say that is divisible by 13, or that is divisible by 13.
5. Wilson’s Theorem: A number is a prime number if and only if . For example, take 7. . When we divide 720 by 7, we get a remainder of 6. This is the same as -1 and modulo-7 arithmetic (because we can keep adding or subtracting 7 in modulo-7 arithmetic and the number will be equivalent, thus a remainder of -1 can be thought of as one less than a multiple of 7). Thus 7 must be a prime number.
And unsolved ones:
1. Goldbach’s Conjecture: Every even positive integer is the sum of two primes.
2. Twin primes are prime numbers which differ by 2, e.g. and . It is unknown whether there are infinitely many twin primes. However, as recently as 2013, it was proven that there’s infinitely many prime pairs where the primes differ by at most 70 million.