2.1 Number Systems, Divisibility Rules, Prime Factorization & Remainder Theorem
Key Takeaways
Real numbers partition into rational and irrational sets. For an integer , primality testing needs prime trial divisors only through .
Divisibility rules for composite divisors require testing co-prime factors where , such as 72 (), 88 (), and 99 ().
Prime divisors utilize specific algorithmic checks: 7 (), 11 (alternating sum), 13 (), 17 (), and 19 ().
For N factored into distinct prime powers, multiply one plus each exponent to count positive divisors. Multiply each prime’s geometric-series sum to sum divisors; require a positive power of 2 when summing even divisors.
Advanced modular arithmetic relies on negative remainders, Fermat's Little Theorem (), Euler's Totient Theorem, Wilson's Theorem, and binomial algebraic expansions.
Mathematical practice context
The numerical railway scenarios in this guide are fictional aptitude exercises. They use the stated idealized assumptions and do not specify actual operating rules, equipment performance, tariffs, staffing norms or engineering designs.
Classification of Numbers & Set Topology
The real number system comprises all values representing continuous quantities along the number line. It divides into two mutually exclusive sets: rational numbers () and irrational numbers ().
Number Sets & Definitions
- Natural Numbers (): Counting numbers . Natural numbers are used for discrete tallies such as the number of passenger coaches in a rake or signals in a block section.
- Whole Numbers (): Natural numbers including zero . Zero represents baseline null states, such as zero block failures during a controller's 8-hour shift.
- Integers (): Positive and negative whole numbers along with zero . Integers express timetable deviations, where indicates minutes ahead of schedule and denotes minutes of operational delay.
- Rational Numbers (): Any number expressible in the fractional form , where and . In decimal form, rational numbers either terminate (e.g., ) or form an infinitely repeating periodic sequence (e.g., ).
- Irrational Numbers (): Real numbers that cannot be represented as a ratio of integers. Their decimal expansions are non-terminating and non-repeating (e.g., ). For example, a square with unit-length sides has an irrational diagonal length .
- Real Numbers (): The union of all rational and irrational numbers ().
- Prime Numbers: Integers greater than 1 that possess exactly two distinct positive divisors: 1 and the number itself. The integer 2 is the smallest prime number and the only even prime. The number 1 is neither prime nor composite.
- Composite Numbers: Integers greater than 1 possessing more than two distinct positive divisors. The smallest composite integer is 4.
- Co-prime Numbers (Relatively Prime): Any pair of integers and whose greatest common divisor is 1, denoted as . The individual numbers need not be primes (e.g., 8 and 15 are co-prime because , even though both are composite).
- Twin Primes: Pairs of prime numbers that differ by exactly 2, such as and .
| Number Classification | Set Symbol | Defining Constraint | Operational Railway Example |
|---|---|---|---|
| Natural Numbers | Count of freight wagons in a consist | ||
| Whole Numbers | Number of signal failures recorded on a branch line | ||
| Integers | Variance from working timetable arrival times (minutes) | ||
| Rational Numbers | Ruling track gradient ratio () or sectional speed | ||
| Irrational Numbers | Non-terminating, non-repeating | Diagonal of a unit square () | |
| Co-prime Integers | Pair | Factor decomposition for compound divisibility testing |
Primality Testing Algorithm
First reject every integer as nonprime. For an integer , test primality without exhaustive trial division as follows:
- Find the integer floor of the square root of : .
- Test divisibility of only by prime numbers less than or equal to .
- For an integer , if no prime divides , then is prime. Zero, one and negative integers are not primes.
+-----------------------------------------------------------------------------+
| PRIMALITY TESTING FLOWCHART |
+-----------------------------------------------------------------------------+
| Given Integer N > 1 |
| │ |
| ▼ |
| Calculate K = floor(sqrt(N)) |
| │ |
| ▼ |
| List all prime numbers p <= K |
| │ |
| ├──> Does any prime p divide N evenly (N mod p == 0)? |
| │ │ |
| │ ├──> YES: N is COMPOSITE |
| │ │ |
| │ └──> NO: N is PRIME |
+-----------------------------------------------------------------------------+
Note
Mathematical Justification: Every composite number can be factored into a product of two integers . If both factors were strictly greater than , their product would exceed (), which is a contradiction. Thus, at least one prime factor must satisfy .
Divisibility Rules from 2 to 19
Divisibility tests help check options and factor expressions without performing full long division.
| Divisor | Divisibility Criterion | Algebraic Test / Shortcut |
|---|---|---|
| 2 | Last digit is even () | Unit digit divisible by 2 |
| 3 | Sum of digits is divisible by 3 | |
| 4 | Number formed by last two digits is divisible by 4 (or ends in 00) | |
| 5 | Last digit is 0 or 5 | |
| 6 | Simultaneously divisible by both 2 and 3 | Even number and |
| 7 | Truncate last digit, double it, and subtract from remaining number; result is divisible by 7 (or 0) | |
| 8 | Number formed by last three digits is divisible by 8 (or ends in 000) | |
| 9 | Sum of digits is divisible by 9 | |
| 10 | Last digit is 0 | |
| 11 | Difference between sum of digits in odd places and even places is 0 or a multiple of 11 | |
| 12 | Simultaneously divisible by 3 and 4 | |
| 13 | Truncate last digit, multiply by 4, and add to remaining number; result is divisible by 13 | |
| 14 | Simultaneously divisible by 2 and 7 | |
| 15 | Simultaneously divisible by 3 and 5 | |
| 16 | Number formed by last four digits is divisible by 16 (or ends in 0000) | |
| 17 | Truncate last digit, multiply by 5, and subtract from remaining number; result is divisible by 17 | |
| 18 | Simultaneously divisible by 2 and 9 | |
| 19 | Truncate last digit, double it, and add to remaining number; result is divisible by 19 |
In-Depth Modular Mechanisms for Prime Divisors
For any two-part split of integer , where is the units digit and is the truncated leading number:
- Divisibility by 7: . Example: Test : ; next step: . Since is divisible by 7, is divisible by 7.
- Divisibility by 13: . Example: Test : ; next step: . Since , is divisible by 13.
- Divisibility by 17: . Example: Test : ; next step: . Since 17 is divisible by 17, is divisible by 17.
- Divisibility by 19: . Example: Test : ; next step: . Since 19 is divisible by 19, is divisible by 19.
Compound Divisibility: 72, 88, and 99 Rules
To test divisibility by a composite using two factors whose product is , choose such that .
Warning
Testing divisibility by 24 using factors 4 and 6 is a catastrophic error because . The number 36 is divisible by 4 and 6, yet . Divisibility by 24 requires co-prime factors 3 and 8 ().
Three Composite Divisor Examples
- Divisibility by 72 ():
- Apply the rule for 8: The number formed by the last three digits must be divisible by 8.
- Apply the rule for 9: The sum of all digits must be divisible by 9.
- Divisibility by 88 ():
- Apply the rule for 8: The last three digits must form a number divisible by 8.
- Apply the rule for 11: The alternating digital sum .
- Divisibility by 99 ():
- Apply the rule for 9: The total sum of digits must be divisible by 9.
- Apply the rule for 11: The alternating digital sum must be 0 or a multiple of 11.
Canonical Prime Factorization & Factor Functions
By the Fundamental Theorem of Arithmetic, every integer can be uniquely factored into prime powers:
where are distinct prime numbers, and are positive integers.
+-----------------------------------------------------------------------------+
| FACTOR COUNTING & SUMMATION FORMULAS |
+-----------------------------------------------------------------------------+
| Total Number of Factors: |
| T(N) = (a + 1)(b + 1)(c + 1)...(m + 1) |
| |
| Number of Odd Factors (assuming p_1 = 2): |
| T_odd(N) = (b + 1)(c + 1)...(m + 1) |
| |
| Number of Even Factors: |
| T_even(N) = a(b + 1)(c + 1)...(m + 1) = T(N) - T_odd(N) |
| |
| Sum of All Factors: |
| S(N) = [(p_1^(a+1) - 1)/(p_1 - 1)] * [(p_2^(b+1) - 1)/(p_2 - 1)] * ... |
| |
| Product of All Factors: |
| P(N) = N^(T(N) / 2) |
+-----------------------------------------------------------------------------+
Factor Structure Analysis for
- Even Factors: An even factor must contain at least one factor of 2. Hence, the exponent of 2 can take values instead of values. Therefore, .
- Odd Factors: An odd factor cannot contain any factor of 2. The exponent of 2 must be 0 (1 choice). Therefore, .
- Sum of Even Factors:
- Sum of Odd Factors:
Remainder Theorems & Modular Arithmetic
Division Algorithm
For any integer dividend and positive divisor , there exist unique integers (quotient) and (remainder) such that:
The Negative Remainder Method
For the displayed shortcut, choose a negative representative r satisfying -D < r < 0. If a representative lies outside this interval, reduce it modulo D first. When the dividend is just below a multiple of the divisor, modular calculations are dramatically simplified by using a negative remainder:
For example, has a remainder of , which is congruent to .
Fermat's Little Theorem (FLT)
If is a prime number and is an integer co-prime to ():
Consequently, to compute , reduce the exponent modulo :
Euler's Totient Theorem
For any modulus and integer satisfying :
where is Euler's totient function, which counts integers in co-prime to . For prime-factorized :
Wilson's Theorem
If is a prime number, then:
Dividing both sides by gives the useful corollary:
Polynomial & Binomial Remainder Theorems
In the integer-divisor examples below, assume x is an integer greater than 1 and n is a positive integer.
- : Leaves a remainder of for all integer .
- : Leaves a remainder of . If is even, remainder is . If is odd, remainder is .
- Algebraic Factorization Properties:
- is always divisible by whenever is odd.
- is always divisible by for all natural numbers .
- is always divisible by both and whenever is even.
Worked Examples
Worked Example 1: Rolling Stock Identification Audit (Divisibility by 88)
Problem: A computerized railway automated wagon management system scans an 8-digit rolling stock serial code as . In this fictional arithmetic exercise, the code is required to be divisible by 88. If and are single decimal digits, find the maximum possible value of .
- Step 1: Decompose 88 into co-prime divisors:
- Step 2: Apply divisibility by 8 to the last three digits (): The three-digit number must be divisible by 8. Since is divisible by 8, the two-digit ending must be divisible by 8. Multiples of 8 ending in 6 between 00 and 99 are: . Therefore, .
- Step 3: Evaluate Candidate Values for under each via Rule for 11:
Number: .
Sum of digits at odd places (from right): .
Sum of digits at even places (from right): .
Difference: .
For divisibility by 11, must be a multiple of 11.
- Case 1: (maximizes ):
For $3 + x$ to be a multiple of 11, $3 + x = 11 \implies x = 8$.
Calculate: $3x + 2y = 3(8) + 2(9) = 24 + 18 = 42$.
- Case 2: :
For $7 + x = 11 \implies x = 4$.
Calculate: $3x + 2y = 3(4) + 2(5) = 12 + 10 = 22$.
- Case 3: :
For $11 + x$ to be a multiple of 11, $x = 0$ (since $x < 10$).
Calculate: $3x + 2y = 3(0) + 2(1) = 2$.
- Conclusion: The maximum possible value of is 42 (with ).
Worked Example 2: Complete Canonical Factor Analysis of
Problem: For the integer , determine: (a) Total number of factors, (b) Number of even factors, (c) Number of odd factors, (d) Sum of all factors, and (e) Sum of even factors.
- Step 1: Canonical Prime Factorization:
Here ; ; .
- Step 2: Total number of factors:
- Step 3: Number of odd factors: Exclude prime factor 2 entirely (set exponent of 2 to 0):
- Step 4: Number of even factors:
(Verification: .)
- Step 5: Sum of all factors:
- Step 6: Sum of even factors: Sum of powers of 2 starting at :
(Check: , and .)
Worked Example 3: Modular Remainder Evaluation
Problem: Find the remainder when is divided by 29.
- Step 1: Evaluate using Fermat's Little Theorem: The modulus 29 is a prime number, and . By Fermat's Little Theorem: . Divide the exponent 102 by 28:
Therefore:
Notice , and . Also . Then . Since :
So .
- Step 2: Evaluate using Wilson's Theorem: Since 29 is prime, Wilson's Theorem directly dictates:
- Step 3: Combine remainders:
- Conclusion: The remainder is 4.
A fictional eight-digit inventory code is 543x82y4, where x and y are decimal digits. The code is divisible by 72 and y is even. What is the maximum possible value of 2x + 3y?
20
26
22
32
What is the sum of all the even positive factors of the integer 2520?
8640
9072
8736
7680
What is the remainder when the algebraic polynomial expression (67^67 + 67) is divided by 68?
66
0
1
67
Sections you finish are checked off in the contents.