1. Unit Digit & Trailing Zeros
-
Formula: For unit digits, identify the repeating cycle of the base. Common cycles:
- (2:\ 2,4,8,6)
- (3:\ 3,9,7,1)
- (7:\ 7,9,3,1)
- (8:\ 8,4,2,6)
- (4:\ 4,6), (9:\ 9,1)
- (0,1,5,6): unit digit remains unchanged.
For trailing zeros in (n!):
- Example: Find the unit digit of (7^{103}). Solution: Cycle of 7:
Cycle length (=4).
103÷4⇒remainder=3The 3rd digit in the cycle is 3.
Therefore, unit digit (=\boxed{3}).
2. Trailing Zeros in Factorials
- Formula: The number of trailing zeros in (n!) equals the number of factors of 5:
- Example: Find the number of trailing zeros in (100!). Solution:
Therefore:
Z=20+4=243. Number of Factors / Divisors
- Formula: If
then the number of positive factors is:
(a+1)(b+1)(c+1)⋯- Example: Find the number of factors of 360. Solution:
Therefore:
(3+1)(2+1)(1+1) =4×3×2=244. Sum of Factors
- Formula: If
then the sum of all positive factors is:
σ(N)=(p1−1p1a+1−1)(p2−1p2b+1−1)⋯- Example: Find the sum of all factors of 12. Solution:
Therefore:
σ(12)=(2−123−1)(3−132−1) =7×4=285. Number of Odd and Even Factors
- Formula: If
then:
Total factors=(a+1)(b+1)(c+1)⋯ Odd factors=(b+1)(c+1)⋯ Even factors=Total factors−Odd factors- Example: Find the number of odd factors of 360. Solution:
For an odd factor, the power of 2 must be zero.
Thus:
(2+1)(1+1)=3×2=66. Prime Factors and Distinct Prime Factors
- Formula: Prime factorization expresses a number as:
Number of distinct prime factors (=k). Total prime factors counted with multiplicity:
a1+a2+⋯+ak- Example: Find the number of distinct prime factors and total prime factors of 360. Solution:
Distinct prime factors:
3Total prime factors:
3+2+1=67. Modular Arithmetic & Remainders
- Formula: If
then powers of (a) can be reduced using the repeating remainder cycle:
akmodnFor (\gcd(a,n)=1), Euler’s theorem gives:
aϕ(n)≡1(modn)- Example: Find the remainder when (2^{256}) is divided by 7. Solution:
Now:
256=3(85)+1Therefore:
2256=(23)85×2 ≡185×2≡2(mod7)8. Remainder of Large Powers
- Formula: Find the cycle of (a^n\pmod m), then reduce the exponent using the cycle length.
- Example: Find the remainder when (3^{50}) is divided by 7. Solution:
Cycle length (=6).
50÷6⇒remainder=2Hence:
350≡32≡2(mod7)9. Euler’s Totient Function
- Formula: If
then:
ϕ(n)=n(1−p11)(1−p21)⋯(1−pk1)For a prime (p):
ϕ(p)=p−1- Example: Find (\phi(12)). Solution:
10. Divisibility Rules
-
Formula: Important rules:
- Divisible by 2 → last digit even.
- Divisible by 3 → sum of digits divisible by 3.
- Divisible by 4 → last two digits divisible by 4.
- Divisible by 5 → last digit 0 or 5.
- Divisible by 8 → last three digits divisible by 8.
- Divisible by 9 → sum of digits divisible by 9.
- Divisible by 11 → difference between alternating digit sums is divisible by 11.
-
Example: Is 7,236 divisible by 9? Solution: Sum of digits:
Since 18 is divisible by 9, 7,236 is divisible by 9.
11. HCF and LCM Using Prime Factorization
-
Formula: For prime factorizations:
- HCF → take the minimum power of every common prime.
- LCM → take the maximum power of every prime.
For two positive integers:
- Example: Find the HCF and LCM of 36 and 48. Solution:
HCF:
22×3=12LCM:
24×32=14412. Number of Divisors from a Given Condition
- Formula: If
the number of divisors is:
(a+1)(b+1)A perfect square has an odd number of divisors.
- Example: How many divisors does (2^4\times3^3) have? Solution:
13. Perfect Square & Perfect Cube
-
Formula: In prime factorization:
- Perfect square → every prime has an even exponent.
- Perfect cube → every prime has an exponent divisible by 3.
-
Example: Is 3600 a perfect square? Solution:
All exponents are even.
Therefore, 3600 is a perfect square.
14. Base Conversion: Any Base to Decimal
- Formula:
- Example: Convert ((101101)_2) to decimal. Solution:
15. Decimal to Binary
- Formula: Repeatedly divide the decimal number by 2 and read the remainders from bottom to top.
- Example: Convert (45) to binary. Solution:
Reading upward:
101101216. Binary, Octal & Hexadecimal Conversion
-
Formula: Group binary digits:
- Binary (\leftrightarrow) Octal: groups of 3 bits.
- Binary (\leftrightarrow) Hexadecimal: groups of 4 bits.
-
Example: Convert ((101101)_2) to octal. Solution: Group from right:
Therefore:
(101101)2=558Advanced Variants
17. Unit Digit of a Product of Large Powers
- Formula: Find the unit digit of each factor separately using its cycle, then multiply the resulting unit digits.
- Example: Find the unit digit of (7^{25}\times3^{14}). Solution: For (7^{25}):
For (3^{14}):
14mod4=2⇒unit digit=9Therefore:
7×9=63Unit digit (=\boxed3).
18. Last Two Digits of a Large Power
- Formula: Work modulo (100):
Use the repeating cycle or modular reduction.
- Example: Find the last two digits of (3^{20}). Solution:
Alternatively, modulo 100:
320≡1(mod100)Therefore, the last two digits are:
0119. Trailing Zeros in a Product
- Formula: Trailing zeros are determined by:
- Example: Find the number of trailing zeros in (25\times40\times16). Solution:
Total factors of 2:
3+4=7Total factors of 5:
2+1=3Therefore:
Trailing zeros=min(7,3)=320. Highest Power of a Prime in (n!)
- Formula: Highest power of prime (p) dividing (n!):
- Example: Find the highest power of 3 dividing (50!). Solution:
Therefore:
v3(50!)=16+5+1=22Hence (3^{22}) divides (50!).
21. Number of Factors of a Factorial
- Formula: First find the prime factorization of (n!):
Then:
d(n!)=(a+1)(b+1)(c+1)⋯- Example: Find the number of factors of (10!). Solution:
Therefore:
d(10!)=(8+1)(4+1)(2+1)(1+1) =9×5×3×2=27022. Perfect Numbers
- Formula: A perfect number equals the sum of its positive proper divisors.
Common examples:
6, 28, 496, 8128- Example: Check whether 28 is a perfect number. Solution: Proper divisors of 28:
Their sum:
1+2+4+7+14=28Therefore, 28 is a perfect number.
Premium Content
Unlock Number System Concepts and all premium lessons with a subscription.
From ₹199.99/year — See plans