Episode 8 — Aptitude and Reasoning / 8.6 — Number System

8.6 Number System -- Quick Revision Sheet

Use this sheet for last-minute revision before exams. Everything is condensed into tables, diagrams, and formulas.


1. Number Classification at a Glance

REAL NUMBERS
├── RATIONAL NUMBERS (can be written as p/q, q != 0)
│   ├── INTEGERS (..., -2, -1, 0, 1, 2, ...)
│   │   ├── WHOLE NUMBERS (0, 1, 2, 3, ...)
│   │   │   └── NATURAL NUMBERS (1, 2, 3, 4, ...)
│   │   └── Negative integers (-1, -2, -3, ...)
│   └── Non-integer rationals (1/2, -3/4, 0.75, 0.333...)
└── IRRATIONAL NUMBERS (sqrt(2), pi, e, non-repeating decimals)
SetStarts fromIncludes zero?Includes negatives?Example
Natural (N)1NoNo1, 2, 3
Whole (W)0YesNo0, 1, 2
Integer (Z)-infinityYesYes-3, 0, 5
Rational (Q)--YesYes1/2, -7, 0.6
Real (R)--YesYessqrt(2), pi, -3

2. Prime Numbers up to 100

 2   3   5   7  11  13  17  19  23  29
31  37  41  43  47  53  59  61  67  71
73  79  83  89  97

Total: 25 primes

Key facts:

  • 2 is the only even prime.
  • 1 is neither prime nor composite.
  • Every prime > 3 is of the form 6k+1 or 6k-1.
  • To test if N is prime, check divisibility by primes up to sqrt(N).

3. Even/Odd Rules

OperationEven + EvenOdd + OddEven + Odd
Add/SubEvenEvenOdd
OperationEven x EvenOdd x OddEven x Odd
MultiplyEvenOddEven

Key: Product is odd ONLY if ALL factors are odd. One even factor makes the product even.


4. Divisibility Rules Table

DivisorRuleExample: 5765832
2Last digit even2 is even --> Yes
3Digit sum divisible by 35+7+6+5+8+3+2=36, 36/3=12 --> Yes
4Last 2 digits divisible by 432/4=8 --> Yes
5Last digit 0 or 52, neither --> No
6Divisible by 2 AND 3Yes and Yes --> Yes
7Double last digit, subtract from restComplex check
8Last 3 digits divisible by 8832/8=104 --> Yes
9Digit sum divisible by 936/9=4 --> Yes
10Last digit 0No
11Odd-place sum - Even-place sum

Composite divisibility (use co-prime pairs):

12 = 4 and 3        15 = 3 and 5        18 = 2 and 9
24 = 8 and 3        36 = 4 and 9        72 = 8 and 9

5. Factor Formulas

Given N = p1^a x p2^b x p3^c x ...:

WhatFormula
Number of factors(a+1)(b+1)(c+1)...
Sum of factors[(p1^(a+1)-1)/(p1-1)] x [(p2^(b+1)-1)/(p2-1)] x ...
Product of all factorsN^(d/2) where d = number of factors
Number of odd factors(b+1)(c+1)... [ignore power of 2]
Number of even factorsTotal - Odd = a(b+1)(c+1)...
Perfect square factors(floor(a/2)+1)(floor(b/2)+1)(floor(c/2)+1)...
Perfect cube factors(floor(a/3)+1)(floor(b/3)+1)(floor(c/3)+1)...
Pairs as product of 2d/2 (if not perfect square) or (d+1)/2 (if perfect square)

Quick example:

360 = 2^3 x 3^2 x 5^1

Total factors   = 4 x 3 x 2 = 24
Odd factors     = 3 x 2 = 6
Even factors    = 24 - 6 = 18
Sq. factors     = 2 x 2 x 1 = 4
Factor pairs    = 24/2 = 12

6. Unit Digit Cycles

+-------+-------------------+---------+
| Digit | Cycle             | Length  |
+-------+-------------------+---------+
|   0   | 0                 |   1     |
|   1   | 1                 |   1     |
|   2   | 2, 4, 8, 6        |   4     |
|   3   | 3, 9, 7, 1        |   4     |
|   4   | 4, 6              |   2     |
|   5   | 5                 |   1     |
|   6   | 6                 |   1     |
|   7   | 7, 9, 3, 1        |   4     |
|   8   | 8, 4, 2, 6        |   4     |
|   9   | 9, 1              |   2     |
+-------+-------------------+---------+

How to use: Divide the exponent by cycle length. If remainder = r, take position r in cycle. If remainder = 0, take the last position.

Example: 8^75
Cycle of 8: {8, 4, 2, 6}, length 4
75 mod 4 = 3
3rd position = 2
Unit digit = 2

7. Remainder Shortcuts

Rem(a + b, n) = [Rem(a, n) + Rem(b, n)] mod n
Rem(a x b, n) = [Rem(a, n) x Rem(b, n)] mod n
Rem(a^k,   n) = [Rem(a, n)]^k mod n

Power patterns:

(n-1)^even mod n = 1
(n-1)^odd  mod n = n - 1
(n+1)^any  mod n = 1

Theorems:

TheoremConditionResult
Fermat's Littlep prime, gcd(a,p)=1a^(p-1) mod p = 1
Euler'sgcd(a,n)=1a^phi(n) mod n = 1
Wilson'sp prime(p-1)! mod p = p-1

8. Euler's Totient (phi) Quick Values

phi(1)  = 1      phi(2)  = 1      phi(3)  = 2
phi(4)  = 2      phi(5)  = 4      phi(6)  = 2
phi(7)  = 6      phi(8)  = 4      phi(9)  = 6
phi(10) = 4      phi(11) = 10     phi(12) = 4
phi(15) = 8      phi(20) = 8      phi(24) = 8
phi(30) = 8      phi(36) = 12     phi(100)= 40

Formula: phi(N) = N x (1 - 1/p1) x (1 - 1/p2) x ...


9. Trailing Zeros in n!

Zeros = floor(n/5) + floor(n/25) + floor(n/125) + floor(n/625) + ...
nTrailing Zeros
10!2
20!4
25!6
50!12
100!24
200!49
250!62
500!124
1000!249

10. Highest Power of Prime p in n!

Power = floor(n/p) + floor(n/p^2) + floor(n/p^3) + ...

For composite d = p^a x q^b x ..., find the power of each prime in n!, divide by the required exponent, and take the minimum.


11. Sum Formulas

Sum of first n naturals      = n(n+1)/2
Sum of first n even numbers  = n(n+1)
Sum of first n odd numbers   = n^2
Sum of squares (1 to n)      = n(n+1)(2n+1)/6
Sum of cubes (1 to n)        = [n(n+1)/2]^2

12. Perfect Square Checks

Can end in: 0, 1, 4, 5, 6, 9
Cannot end in: 2, 3, 7, 8

mod 4: remainder is 0 or 1 (never 2 or 3)
mod 3: remainder is 0 or 1 (never 2)

If ends in 0: even number of trailing zeros
If ends in 5: must end in 25
All exponents in prime factorization are even
Always has ODD number of factors

13. Useful Algebraic Identities

a^n - b^n is always divisible by (a - b)
a^n + b^n is divisible by (a + b) when n is ODD
a^n - 1 is divisible by (a - 1) for all n

14. Key Numbers to Remember

1001 = 7 x 11 x 13    (abcabc = abc x 1001)
111  = 3 x 37
1111 = 11 x 101
10001 = 73 x 137

Powers of 2: 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024
Powers of 3: 1, 3, 9, 27, 81, 243, 729
Powers of 5: 1, 5, 25, 125, 625, 3125

15. Counting in Ranges

Integers from a to b inclusive     = b - a + 1
Multiples of k in [1, n]          = floor(n/k)
Multiples of k in [a, b]          = floor(b/k) - floor((a-1)/k)
Neither div by m nor n in [1, N]  = N - floor(N/m) - floor(N/n) + floor(N/lcm(m,n))

16. Common Exam Patterns -- One-Line Answers

PatternFormula
Largest n-digit multiple of kk x floor((10^n - 1)/k)
Smallest n-digit multiple of kk x ceil(10^(n-1)/k)
Remainder of n! / p (p prime, p <= n)0
Remainder of (1!+2!+...+n!) / kOnly sum up to (k-1)!
Product of k consecutive integersAlways divisible by k!
abcabcAlways divisible by 7, 11, 13
Last two digits of a^n (gcd(a,100)=1)Reduce power mod 40

17. Quick Revision Checklist

Before the exam, make sure you can:

  • List primes up to 100
  • Apply all divisibility rules (2 through 11) in under 10 seconds
  • Find the prime factorization of any number up to 1000
  • Calculate number of factors using the formula
  • Find unit digits using cyclicity
  • Calculate trailing zeros in factorials
  • Use Fermat's and Euler's theorems for remainder problems
  • Apply inclusion-exclusion for counting in ranges
  • Identify perfect squares from their properties
  • Compute Euler's totient for common values