PEA307Semester 4 • 3 CreditsCore Subjects

Advanced Analytical Skills-I

The course focuses on developing advanced analytical skills, including numeration, percentage, ratio, counting methods, and logical reasoning, to prepare students for competitive examinations and enhance their employability.

Syllabus PDF
6 Units • Notes • Model Answers • MCQs
Select Course Unit (6 Units)
Active: Unit 1
Unit 1:Unit 1: Speed maths, Advanced numeration and Mean
35 min•High-Yield Unit Guide

Unit 1: Speed maths, Advanced numeration and Mean

Unit 1 Exam Focus & Core Takeaways

Review the core definitions, standard architectures, and syntax patterns below. Pay special attention to sections highlighted with bullet points for your mid-term and end-term subjective questions.

Unit 1: Speed Maths, Advanced Numeration and Mean

1. Algorithmic Speed Mathematics and Mental Computation

1.1 Foundational Sutras of Vedic Mathematics

Speed mathematics leverages structural properties of positional base-10 numeration to transform polynomial-time arithmetic operations into linear-time mental shortcuts.

  1. Ekadhikena Purvena ("By One More Than the Previous"):

    • Squaring Numbers Ending in 5:
      Any positive integer ending in 5 can be represented as N=10a+5N = 10a + 5, where a∈N0a \in \mathbb{N}_0.
      N2=(10a+5)2=100a2+100a+25=100a(a+1)+25N^2 = (10a + 5)^2 = 100a^2 + 100a + 25 = 100a(a + 1) + 25
      The left part of the square is computed by multiplying the prefix aa by its successor (a+1)(a + 1), while the terminal two digits are invariably 2525.
      Example: 852  ⟹  a=885^2 \implies a = 8. Left part: 8×9=728 \times 9 = 72; Right part: 25  ⟹  722525 \implies 7225.
    • Recurring Decimal Expansions (Denominators ending in 9):
      Computing the decimal expansion of 119\frac{1}{19} using the auxiliary fraction 120\frac{1}{20}: beginning from the last digit, each preceding digit is obtained by multiplying by 2 (or dividing sequentially).
  2. Nikhilam Navatashcaramam Dashatah ("All from 9 and the Last from 10"):

    • Multiplication Near a Common Power-of-10 Base (B=10kB = 10^k):
      Let two numbers be X=B+d1X = B + d_1 and Y=B+d2Y = B + d_2, where d1,d2d_1, d_2 represent positive or negative base deviations.
      X⋅Y=(B+d1)(B+d2)=B(B+d1+d2)+d1d2=B(X+d2)+d1d2X \cdot Y = (B + d_1)(B + d_2) = B(B + d_1 + d_2) + d_1 d_2 = B(X + d_2) + d_1 d_2
      Example (Deficit Base 1000): 994×988994 \times 988. Base B=1000B = 1000. Deviations d1=−6,d2=−12d_1 = -6, d_2 = -12.
      • Left part: X+d2=994+(−12)=982X + d_2 = 994 + (-12) = 982.
      • Right part: d1×d2=(−6)×(−12)=+72d_1 \times d_2 = (-6) \times (-12) = +72.
        Since base 10001000 requires 3 digits on the right: 072072.
        Product =982,072= 982,072.
    • Surplus-Deficit Hybrid Multiplication:
      When X=B+d1X = B + d_1 (surplus) and Y=B−d2Y = B - d_2 (deficit):
      X⋅Y=B(X−d2)−d1d2=[B(X−d2)−1]+[B−d1d2]X \cdot Y = B(X - d_2) - d_1 d_2 = [B(X - d_2) - 1] + [B - d_1 d_2]
  3. Urdhva Tiryagbhyam ("Vertically and Crosswise"):
    General multiplication algorithm for arbitrary multi-digit numbers, mathematically equivalent to discrete polynomial convolution.
    For two 2-digit numbers (10a+b)(10a + b) and (10c+d)(10c + d):
    (10a+b)(10c+d)=100(ac)+10(ad+bc)+(bd)(10a + b)(10c + d) = 100(ac) + 10(ad + bc) + (bd)

    • Step 1: Multiply vertical right column: b×db \times d. Record unit digit, carry tens.
    • Step 2: Multiply crosswise and sum: (a×d)+(b×c)+carry(a \times d) + (b \times c) + \text{carry}.
    • Step 3: Multiply vertical left column: (a×c)+carry(a \times c) + \text{carry}.

    For 3-digit multiplication (100a+10b+c)×(100d+10e+f)(100a + 10b + c) \times (100d + 10e + f):

    • Column 1: c×fc \times f
    • Column 2: b×f+c×eb \times f + c \times e
    • Column 3: a×f+b×e+c×da \times f + b \times e + c \times d
    • Column 4: a×e+b×da \times e + b \times d
    • Column 5: a×da \times d
  4. Vinculum Representation (Signed-Digit Numeration):
    A method to replace digits greater than 5 with negative digits (dˉ\bar{d} denoting −d-d), minimizing mental carry operations:
    10a+b=10(a+1)−(10−b)=10(a+1)+10−b‾10a + b = 10(a + 1) - (10 - b) = 10(a + 1) + \overline{10 - b}
    Example: 389=400−11=41ˉ1ˉ389 = 400 - 11 = 4\bar{1}\bar{1}.
    Squaring 389389: (400−11)2=160000−8800+121=151,321(400 - 11)^2 = 160000 - 8800 + 121 = 151,321.


1.2 Fast Duplex Extraction of Roots (Dvandva Yoga)

The Duplex (DD) of a sequence of digits is defined:

  • For a single digit aa: D(a)=a2D(a) = a^2.
  • For two digits abab: D(ab)=2abD(ab) = 2ab.
  • For three digits abcabc: D(abc)=2ac+b2D(abc) = 2ac + b^2.
  • For four digits abcdabcd: D(abcd)=2ad+2bcD(abcd) = 2ad + 2bc.
  • For nn digits d1d2…dnd_1 d_2 \dots d_n: D=2(d1dn+d2dn−1+… )+d(n+1)/22D = 2(d_1 d_n + d_2 d_{n-1} + \dots) + d_{(n+1)/2}^2 (if nn is odd).

Duplex extraction enables mental determination of square roots by subtracting successive duplexes from running remainders.


2. Advanced Numeration and Number Theory

2.1 The Fundamental Theorem of Arithmetic and Divisor Algebra

Every integer N>1N > 1 admits a unique canonical prime factorization up to the order of factors:
N=p1a1p2a2p3a3⋯pkak=∏i=1kpiaiN = p_1^{a_1} p_2^{a_2} p_3^{a_3} \cdots p_k^{a_k} = \prod_{i=1}^k p_i^{a_i}
where pip_i are distinct prime numbers and ai∈Na_i \in \mathbb{N}.

1. Total Number of Divisors d(N)d(N) or τ(N)\tau(N):

Every divisor of NN takes the form d=p1b1p2b2⋯pkbkd = p_1^{b_1} p_2^{b_2} \cdots p_k^{b_k} with 0≤bi≤ai0 \le b_i \le a_i. By the rule of product:
d(N)=(a1+1)(a2+1)(a3+1)⋯(ak+1)=∏i=1k(ai+1)d(N) = (a_1 + 1)(a_2 + 1)(a_3 + 1)\cdots(a_k + 1) = \prod_{i=1}^k (a_i + 1)

2. Sum of All Positive Divisors σ(N)\sigma(N):

Expanding the geometric series across each prime component:
σ(N)=(∑b1=0a1p1b1)(∑b2=0a2p2b2)⋯(∑bk=0akpkbk)=∏i=1kpiai+1−1pi−1\sigma(N) = \left( \sum_{b_1=0}^{a_1} p_1^{b_1} \right) \left( \sum_{b_2=0}^{a_2} p_2^{b_2} \right) \cdots \left( \sum_{b_k=0}^{a_k} p_k^{b_k} \right) = \prod_{i=1}^k \frac{p_i^{a_i + 1} - 1}{p_i - 1}

3. Product of All Divisors P(N)P(N):

Pairing each divisor dd with its complementary cofactor N/dN / d:
P(N)=Nd(N)2P(N) = N^{\frac{d(N)}{2}}

4. Number of Ways to Factor NN as a Product of Two Factors:

Ways={d(N)2if N is not a perfect squared(N)+12if N is a perfect square (distinct or identical)\text{Ways} = \begin{cases} \frac{d(N)}{2} & \text{if } N \text{ is not a perfect square} \\ \frac{d(N) + 1}{2} & \text{if } N \text{ is a perfect square (distinct or identical)} \end{cases}

5. Even and Odd Divisors:

Let N=2a⋅p2a2⋯pkakN = 2^a \cdot p_2^{a_2} \cdots p_k^{a_k} with a≥1a \ge 1:

  • Total Odd Divisors: dodd(N)=(a2+1)(a3+1)⋯(ak+1)d_{\text{odd}}(N) = (a_2 + 1)(a_3 + 1)\cdots(a_k + 1).
  • Total Even Divisors: deven(N)=d(N)−dodd(N)=a(a2+1)⋯(ak+1)d_{\text{even}}(N) = d(N) - d_{\text{odd}}(N) = a(a_2 + 1)\cdots(a_k + 1).

2.2 Euler's Totient Function ϕ(N)\phi(N) and Modular Theorems

Euler's totient function counts the number of positive integers up to NN that are coprime to NN (gcd⁡(k,N)=1\gcd(k, N) = 1 for 1≤k≤N1 \le k \le N):
ϕ(N)=N∏p∣N(1−1p)=N(1−1p1)(1−1p2)⋯(1−1pk)\phi(N) = N \prod_{p \mid N} \left( 1 - \frac{1}{p} \right) = N \left( 1 - \frac{1}{p_1} \right)\left( 1 - \frac{1}{p_2} \right)\cdots\left( 1 - \frac{1}{p_k} \right)

  • If pp is prime: ϕ(p)=p−1\phi(p) = p - 1.
  • If pp is prime and a≥1a \ge 1: ϕ(pa)=pa−pa−1=pa(1−1p)\phi(p^a) = p^a - p^{a-1} = p^a \left(1 - \frac{1}{p}\right).
  • Multiplicative Property: If gcd⁡(m,n)=1\gcd(m, n) = 1, then ϕ(mn)=ϕ(m)ϕ(n)\phi(mn) = \phi(m)\phi(n).

1. Euler's Totient Theorem:

If aa and mm are coprime positive integers (gcd⁡(a,m)=1\gcd(a, m) = 1):
aϕ(m)≡1(modm)a^{\phi(m)} \equiv 1 \pmod m

2. Fermat's Little Theorem:

If pp is a prime and gcd⁡(a,p)=1\gcd(a, p) = 1:
ap−1≡1(modp)  ⟹  ap≡a(modp)a^{p - 1} \equiv 1 \pmod p \implies a^p \equiv a \pmod p

3. Wilson's Theorem:

A natural number p>1p > 1 is prime if and only if:
(p−1)!≡−1≡p−1(modp)(p - 1)! \equiv -1 \equiv p - 1 \pmod p


2.3 Cyclicity, Residue Arithmetic, and Units Digit Determination

Powers of single digits exhibit cyclic periodicity in their unit digits modulo 10:

  • Cyclicity 1: {0,1,5,6}\{0, 1, 5, 6\} (terminal digit is invariant for all powers ≥1\ge 1).
  • Cyclicity 2: {4,9}\{4, 9\} (4odd≡4,4even≡64^{\text{odd}} \equiv 4, 4^{\text{even}} \equiv 6; 9odd≡9,9even≡19^{\text{odd}} \equiv 9, 9^{\text{even}} \equiv 1).
  • Cyclicity 4: {2,3,7,8}\{2, 3, 7, 8\}:
    • 21≡2,22≡4,23≡8,24≡6(mod10)2^1 \equiv 2, 2^2 \equiv 4, 2^3 \equiv 8, 2^4 \equiv 6 \pmod{10}
    • 31≡3,32≡9,33≡7,34≡1(mod10)3^1 \equiv 3, 3^2 \equiv 9, 3^3 \equiv 7, 3^4 \equiv 1 \pmod{10}
    • 71≡7,72≡9,73≡3,74≡1(mod10)7^1 \equiv 7, 7^2 \equiv 9, 7^3 \equiv 3, 7^4 \equiv 1 \pmod{10}
    • 81≡8,82≡4,83≡2,84≡6(mod10)8^1 \equiv 8, 8^2 \equiv 4, 8^3 \equiv 2, 8^4 \equiv 6 \pmod{10}

To compute the units digit of ABA^B:

  1. Reduce base AA modulo 10: a=A(mod10)a = A \pmod{10}.
  2. Compute r=B(mod4)r = B \pmod 4. If r=0r = 0, set exponent power to 4.
  3. Compute ar(mod10)a^r \pmod{10}.

Terminal Two Digits (Modulo 100):

To compute the last two digits of ABA^B:

  1. If AA ends in 1: (10a+1)B≡10(a⋅B)+1(mod100)(10a + 1)^B \equiv 10(a \cdot B) + 1 \pmod{100}.
  2. If AA ends in 5: A2≡25(mod100)A^2 \equiv 25 \pmod{100}.
  3. If AA is even: Factor out 2k2^k, utilize 210=1024≡24(mod100)2^{10} = 1024 \equiv 24 \pmod{100}, and 24even≡76(mod100)24^{\text{even}} \equiv 76 \pmod{100}.

2.4 Legendre's Formula (Highest Power of Prime Dividing n!n!)

The exponent of a prime pp in the prime factorization of n!n!, denoted Ep(n!)E_p(n!) or vp(n!)v_p(n!), is given by Legendre's de Polignac formula:
Ep(n!)=∑k=1∞⌊npk⌋=⌊np⌋+⌊np2⌋+⌊np3⌋+…E_p(n!) = \sum_{k=1}^{\infty} \left\lfloor \frac{n}{p^k} \right\rfloor = \left\lfloor \frac{n}{p} \right\rfloor + \left\lfloor \frac{n}{p^2} \right\rfloor + \left\lfloor \frac{n}{p^3} \right\rfloor + \dots

Trailing Zeros in n!n!:

A trailing zero is generated by the prime factor 10=2×510 = 2 \times 5. In any factorial n!n!, the factor 2 is far more abundant than 5 (E2(n!)>E5(n!)E_2(n!) > E_5(n!)). Therefore, the number of trailing zeros Z(n!)Z(n!) is strictly governed by E5(n!)E_5(n!):
Z(n!)=E5(n!)=∑k=1∞⌊n5k⌋=⌊n5⌋+⌊n25⌋+⌊n125⌋+…Z(n!) = E_5(n!) = \sum_{k=1}^{\infty} \left\lfloor \frac{n}{5^k} \right\rfloor = \left\lfloor \frac{n}{5} \right\rfloor + \left\lfloor \frac{n}{25} \right\rfloor + \left\lfloor \frac{n}{125} \right\rfloor + \dots


3. The Chinese Remainder Theorem (CRT) and Modular Congruences

3.1 Constructive Theorem Formulation

Let m1,m2,…,mkm_1, m_2, \dots, m_k be pairwise coprime positive integers (gcd⁡(mi,mj)=1\gcd(m_i, m_j) = 1 for i≠ji \ne j), and let a1,a2,…,aka_1, a_2, \dots, a_k be arbitrary integers.
The system of simultaneous linear congruences:
x≡a1(modm1)x \equiv a_1 \pmod{m_1}
x≡a2(modm2)x \equiv a_2 \pmod{m_2}
⋮\vdots
x≡ak(modmk)x \equiv a_k \pmod{m_k}
admits a unique solution modulo M=∏i=1kmiM = \prod_{i=1}^k m_i.

3.2 Constructive Solution Algorithm

  1. Compute the global modulus: M=m1⋅m2⋯mkM = m_1 \cdot m_2 \cdots m_k.
  2. For each index i∈{1,…,k}i \in \{1, \dots, k\}, compute the cofactor:
    Mi=Mmi=∏j≠imjM_i = \frac{M}{m_i} = \prod_{j \ne i} m_j
  3. By coprimality gcd⁡(Mi,mi)=1\gcd(M_i, m_i) = 1, find the modular multiplicative inverse yi=Mi−1(modmi)y_i = M_i^{-1} \pmod{m_i} using the Extended Euclidean Algorithm such that:
    Mi⋅yi≡1(modmi)M_i \cdot y_i \equiv 1 \pmod{m_i}
  4. The unique minimal non-negative solution is:
    x=(∑i=1kaiMiyi)(modM)x = \left( \sum_{i=1}^k a_i M_i y_i \right) \pmod M

4. Positional Radix Numeration and Cross-Base Conversions

In computer engineering and discrete analytics, numbers are represented across distinct radix bases b≥2b \ge 2:
N=(dkdk−1…d1d0)b=∑i=0kdi⋅bi,0≤di<bN = (d_k d_{k-1} \dots d_1 d_0)_b = \sum_{i=0}^k d_i \cdot b^i, \quad 0 \le d_i < b

4.1 Radix Conversion Mechanisms

  1. Base b→b \to Decimal (Base 10): Direct polynomial evaluation via Horner's rule:
    N=(…((dk⋅b+dk−1)⋅b+dk−2)… )⋅b+d0N = (\dots((d_k \cdot b + d_{k-1}) \cdot b + d_{k-2})\dots) \cdot b + d_0
  2. Decimal →\to Base bb: Successive integer division by bb, recording remainders from least significant digit (d0d_0) to most significant digit (dkd_k).
  3. Power-of-2 Grouping (Binary, Octal, Hexadecimal):
    • Base 2 to Base 8: Group bits into clusters of 3 (23=82^3 = 8).
    • Base 2 to Base 16: Group bits into clusters of 4 (24=162^4 = 16).

5. Advanced Theory of Means and Statistical Centrality

5.1 The Classical Pythagorean Means

For a set of nn strictly positive real numbers {x1,x2,…,xn}⊂R+\{x_1, x_2, \dots, x_n\} \subset \mathbb{R}^+:

  1. Arithmetic Mean (AMAM):
    The balance point or first central moment:
    AM=1n∑i=1nxi=x1+x2+⋯+xnnAM = \frac{1}{n} \sum_{i=1}^n x_i = \frac{x_1 + x_2 + \dots + x_n}{n}

  2. Geometric Mean (GMGM):
    The multiplicative central measure, invariant under proportional compounding:
    GM=(∏i=1nxi)1/n=x1⋅x2⋯xnnGM = \left( \prod_{i=1}^n x_i \right)^{1/n} = \sqrt[n]{x_1 \cdot x_2 \cdots x_n}
    In logarithmic form:
    ln⁡(GM)=1n∑i=1nln⁡(xi)\ln(GM) = \frac{1}{n} \sum_{i=1}^n \ln(x_i)

  3. Harmonic Mean (HMHM):
    The reciprocal of the arithmetic mean of reciprocals, governing rates and ratios:
    HM=n∑i=1n1xi=n1x1+1x2+⋯+1xnHM = \frac{n}{\sum_{i=1}^n \frac{1}{x_i}} = \frac{n}{\frac{1}{x_1} + \frac{1}{x_2} + \dots + \frac{1}{x_n}}

  4. Root Mean Square / Quadratic Mean (RMSRMS or QMQM):
    Governing alternating waveforms, statistical variance, and error metrics:
    RMS=1n∑i=1nxi2=x12+x22+⋯+xn2nRMS = \sqrt{\frac{1}{n} \sum_{i=1}^n x_i^2} = \sqrt{\frac{x_1^2 + x_2^2 + \dots + x_n^2}{n}}

  5. Contraharmonic Mean (CHMCHM):
    Dual to the Harmonic Mean, placing greater weight on larger values:
    CHM=∑i=1nxi2∑i=1nxi=x12+x22+⋯+xn2x1+x2+⋯+xnCHM = \frac{\sum_{i=1}^n x_i^2}{\sum_{i=1}^n x_i} = \frac{x_1^2 + x_2^2 + \dots + x_n^2}{x_1 + x_2 + \dots + x_n}
    Notice that CHM+HM=2⋅AMCHM + HM = 2 \cdot AM for two numbers.


5.2 The Generalized Hölder Power Mean (MpM_p)

Pythagorean and quadratic means are unified under the one-parameter Hölder Power Mean family:
Mp(x1,…,xn)=(1n∑i=1nxip)1/p,p∈R∖{0}M_p(x_1, \dots, x_n) = \left( \frac{1}{n} \sum_{i=1}^n x_i^p \right)^{1/p}, \quad p \in \mathbb{R} \setminus \{0\}

  • p→−∞  ⟹  min⁡(x1,…,xn)p \to -\infty \implies \min(x_1, \dots, x_n)
  • p=−1  ⟹  HMp = -1 \implies HM
  • p→0  ⟹  GMp \to 0 \implies GM (via L'Hôpital's rule on logarithmic limits)
  • p=1  ⟹  AMp = 1 \implies AM
  • p=2  ⟹  RMSp = 2 \implies RMS
  • p→+∞  ⟹  max⁡(x1,…,xn)p \to +\infty \implies \max(x_1, \dots, x_n)

5.3 The Fundamental Mean Inequality

For any collection of positive real numbers x1,x2,…,xn>0x_1, x_2, \dots, x_n > 0:
min⁡(xi)≤HM≤GM≤AM≤RMS≤CHM≤max⁡(xi)\min(x_i) \le HM \le GM \le AM \le RMS \le CHM \le \max(x_i)
Equality holds throughout if and only if all variables are strictly identical: x1=x2=⋯=xnx_1 = x_2 = \dots = x_n.

CODE
              The Hierarchy of Centrality Measures
  +-----------------------------------------------------------------------+
  | Min  <=  HM  <=  GM  <=  AM  <=  RMS  <=  Contraharmonic  <=  Max     |
  +-----------------------------------------------------------------------+

For two positive numbers aa and bb:
AM=a+b2,GM=ab,HM=2aba+bAM = \frac{a + b}{2}, \quad GM = \sqrt{ab}, \quad HM = \frac{2ab}{a + b}
GM2=AM⋅HM  ⟹  GM=AM⋅HMGM^2 = AM \cdot HM \implies GM = \sqrt{AM \cdot HM}
Furthermore:
AM−GM=a+b−2ab2=(a−b)22≥0AM - GM = \frac{a + b - 2\sqrt{ab}}{2} = \frac{(\sqrt{a} - \sqrt{b})^2}{2} \ge 0
which establishes an analytical proof of AM≥GMAM \ge GM.


5.4 Rate Averaging and Harmonic Mean Applications

When computing the average rate across multiple stages:

  1. Equal Distances, Variable Speeds:
    Let a vehicle travel distance DD at speed v1v_1, and the identical distance DD at speed v2v_2.
    Total Time T=Dv1+Dv2=D(v1+v2v1v2)\text{Total Time } T = \frac{D}{v_1} + \frac{D}{v_2} = D \left( \frac{v_1 + v_2}{v_1 v_2} \right)
    Average Speed vavg=2DT=2DD(v1+v2v1v2)=2v1v2v1+v2=HM(v1,v2)\text{Average Speed } v_{\text{avg}} = \frac{2D}{T} = \frac{2D}{D \left( \frac{v_1 + v_2}{v_1 v_2} \right)} = \frac{2 v_1 v_2}{v_1 + v_2} = HM(v_1, v_2)
  2. Equal Times, Variable Speeds:
    If a vehicle travels for time tt at speed v1v_1, and for the identical time tt at speed v2v_2:
    Total Distance D=v1t+v2t=(v1+v2)t\text{Total Distance } D = v_1 t + v_2 t = (v_1 + v_2) t
    Average Speed vavg=D2t=(v1+v2)t2t=v1+v22=AM(v1,v2)\text{Average Speed } v_{\text{avg}} = \frac{D}{2t} = \frac{(v_1 + v_2) t}{2t} = \frac{v_1 + v_2}{2} = AM(v_1, v_2)

5.5 Robust Means: Trimmed and Winsorized Estimators

When data sets contain extreme outliers or heavy-tailed noise:

  1. Trimmed Mean (α\alpha-trimmed): Discards the lowest and highest k=⌊α⋅n⌋k = \lfloor \alpha \cdot n \rfloor observations before computing the arithmetic mean:
    xˉtrim=1n−2k∑i=k+1n−kx(i)\bar{x}_{\text{trim}} = \frac{1}{n - 2k} \sum_{i=k+1}^{n-k} x_{(i)}
  2. Winsorized Mean: Replaces the lowest kk values with x(k+1)x_{(k+1)} and highest kk values with x(n−k)x_{(n-k)}, preserving sample size nn while suppressing outlier influence.

6. Comprehensive Mathematical Reference Formulary

Archetype / ConceptMathematical Identity / FormulationOperational Notes
Squaring (10a+5)(10a + 5)(10a+5)2=100a(a+1)+25(10a + 5)^2 = 100a(a + 1) + 25Left part a(a+1)a(a+1), terminal 25.
Deficit Base Multiplication(B−d1)(B−d2)=B(B−d1−d2)+d1d2(B - d_1)(B - d_2) = B(B - d_1 - d_2) + d_1 d_2B=10kB = 10^k; right part has kk digits.
Number of Divisorsd(N)=∏(ai+1)d(N) = \prod (a_i + 1)Derived from prime factorization.
Sum of Divisorsσ(N)=∏piai+1−1pi−1\sigma(N) = \prod \frac{p_i^{a_i + 1} - 1}{p_i - 1}Product of geometric progressions.
Product of DivisorsP(N)=Nd(N)/2P(N) = N^{d(N)/2}Pairing divisors with cofactors.
Euler's Totient ϕ(N)\phi(N)ϕ(N)=N∏p∣N(1−1/p)\phi(N) = N \prod_{p \mid N} (1 - 1/p)Count of coprimes ≤N\le N.
Euler's Theoremaϕ(m)≡1(modm)a^{\phi(m)} \equiv 1 \pmod mRequires gcd⁡(a,m)=1\gcd(a, m) = 1.
Fermat's Little Theoremap−1≡1(modp)a^{p-1} \equiv 1 \pmod pPrime modulus pp, gcd⁡(a,p)=1\gcd(a, p) = 1.
Wilson's Theorem(p−1)!≡−1(modp)(p - 1)! \equiv -1 \pmod pPrimality test criterion.
Legendre's FormulaEp(n!)=∑k=1∞⌊n/pk⌋E_p(n!) = \sum_{k=1}^\infty \lfloor n / p^k \rfloorExponent of prime pp in n!n!.
Trailing Zeros in n!n!Z(n!)=∑k=1∞⌊n/5k⌋Z(n!) = \sum_{k=1}^\infty \lfloor n / 5^k \rfloorGoverned by factors of 5.
Harmonic MeanHM=n∑1/xiHM = \frac{n}{\sum 1/x_i}Reciprocal of mean of reciprocals.
Contraharmonic MeanCHM=∑xi2∑xiCHM = \frac{\sum x_i^2}{\sum x_i}Upper dual of harmonic mean.
Mean DualityGM2=AM⋅HMGM^2 = AM \cdot HMValid for 2 positive quantities.
Average Speed (Equal DD)vavg=2v1v2v1+v2v_{\text{avg}} = \frac{2 v_1 v_2}{v_1 + v_2}Harmonic mean of travel velocities.