Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 8 a Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 7 c Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 7 b Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 7 a Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 6 b Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 6 a Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 5 b Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 5 a Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 4 Solution Created 2026-09-24 Updated 2026-10-14
A prime number is an integer greater than one whose only positive divisors are one and itself. In particular, one is not a prime number. Every integer greater than one has a prime number divisor, by taking its smallest divisor greater than one.
Suppose there were only finitely many prime numbers congruent to modulo six, and let their product be , with empty product one. The integer has no divisor two or three and is divisible by none of the listed prime numbers, since . Every prime number divisor of is therefore or modulo six. If all these divisors were modulo six, their product, with multiplicities, would also be modulo six. But . Hence at least one divisor is an unlisted prime number congruent to modulo six, a contradiction. There are infinitely many primes of the form .
For the other class, suppose its prime numbers were a finite list with product . None is divisible by three. The integer is odd and is modulo three, since . Thus a prime number divisor of satisfies . The residue solves , so the allowed quadratic-congruence fact gives . However, for every listed divisor , , and , so none divides . We have again found an unlisted prime number in the supposedly complete list. There are infinitely many primes of the form . Both arguments remain valid for an empty starting list.
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 3 Solution Created 2026-09-24 Updated 2026-10-14
Extract one four-bit digit at a time, beginning at the most significant end of the Java The logical right bit shift
int. A lookup string supplies characters, but no library performs the conversion:java
static String toHex(int value) {
String digits = "0123456789abcdef";
String answer = "";
boolean started = false;
for (int shift = 28; shift >= 0; shift -= 4) {
int digit = (value >>> shift) & 15;
if (started || digit != 0 || shift == 0) {
answer = answer + digits.charAt(digit);
started = true;
}
}
return answer;
}>>> inserts zeros, and the bit mask 15 retains exactly the low four bits of the shifted word. Each emitted character is therefore the corresponding hexadecimal digit. The started flag suppresses leading zero digits; the shift == 0 exception makes zero produce "0", rather than an empty string.A negative Java integer uses two's complement. Its top bit is set, so the first extracted digit is between eight and fifteen and all eight digits are emitted. We interpret its original 32-bit pattern, without taking an absolute value or negating a potentially unnegatable minimum integer. In particular,
toHex(19) returns "13", toHex(-1) returns "ffffffff", and toHex(Integer.MIN_VALUE) returns "80000000". There are exactly eight iterations, so for this fixed word size the time complexity is constant. Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 2 e Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 2 d Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 2 c Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 2 b Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 2 a Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 12 Solution Created 2026-09-24 Updated 2026-10-14
For finite sets , the inclusion-exclusion principle statesTo prove it, fix an element in exactly of the sets. If , it contributes to neither side. If , its contribution to the right side isusing the binomial theorem. This is exactly its contribution to the union. Summing over the finite ambient union proves the formula. Equivalently, the proof is an identity of elementwise membership indicators, so no unproved rule for overlapping sets is being assumed.
Now let the ambient set be all permutations, and let be those fixing element . A set intersection of specified events has elements: the specified elements are fixed and the others may be permuted freely. Apply inclusion-exclusion to the complement of the union of these events. There are possible choices of the fixed positions, hence the derangement count isThe term counts the whole ambient set before subtraction; it is not an omitted empty intersection. The formula also gives and .
Dividing by the factorial and using the convergent power series for the exponential function at givesThe alternating-series estimate supplies the explicit error bound . Thus the limiting proportion is established, not merely identified from the first few values.
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 11 iv Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 11 iii Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 11 ii Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 5 11 i Created 2026-09-24 Updated 2026-10-14
There are unlisted articles, also show them or only show them.