✓ Official Syllabus VerifiedStandards & Rigor ↗
🇸🇦 Subsection II · NSMO of KSA — National Science & Mathematics Olympiad (Mawhiba · أولمبياد نسما الوطني)
10

NSMO of KSA (Stage 3): Riyadh National Finals & Mawhiba Saudi IMO Team Pathway

🥇 Subsection II · NSMO Stage 3 Finals & Mawhiba Olympiad Camps RIYADH FINALS · IMO CAMP  ·  Official 0–7 point Olympiad proof grading rubric  ·  Functional equations over Z, Q, and R (Cauchy & involutions)  ·  Lifting the Exponent Lemma (LTE) & multiplicative order  ·  Reflected orthocenter on circumcircle & Nine-Point Circle  ·  Mantel–Turán extremal graph bounds

Qualifying for NSMO Stage 3 (Riyadh National Finals) and Mawhiba’s Winter/Summer Olympiad Camps marks the transition from answer-finding to rigorous 7-point mathematical proof writing. This chapter covers the four signature pillars of Mawhiba’s IMO team selection tests (TSTs): functional equations, Lifting the Exponent (LTE) & order arguments, orthocenter–circumcircle reflections, and extremal graph combinatorics—alongside the exact 7-point grading rubric used by Olympiad juries.

Official 7-Point Olympiad Proof Grading Rubric (NSMO Finals / BMO / APMO / IMO)
ScoreJury CriterionCommon Pitfall to Avoid
7 / 7Complete, airtight proof covering all edge cases AND proving uniqueness/sufficiencyNone — even minor arithmetic slips only keep 6–7 if non-structural
6 / 7Complete proof missing a boundary verification (e.g., forgetting to plug f(x) back into FE!)Deriving f(x)=cx in a functional equation without checking it satisfies the original equation!
2 – 5 / 7Proves a major structural lemma (e.g., injectivity of \(f\), cyclic quad, or \(p \mid n\))Leaving lemmas unstated—always isolate claims clearly as "Claim 1 / Lemma 1"!
0 – 1 / 7Guessing the right answer or testing small values \(n=1,2,3\) without general argumentPure answer with zero justification often earns 0/7 on constructive/FE problems!
● Definition 10.1 — Cauchy’s Functional Equation & Olympiad Substitution Playbook

A functional equation asks for ALL functions \( f: A \to B \) satisfying an identity for all inputs in \( A \). The foundational model is Cauchy’s Additive Equation \( f(x + y) = f(x) + f(y) \):
• Over \( \mathbb{Q} \) (or \( \mathbb{Z} \)): every solution is \( f(x) = cx \) where \( c = f(1) \) (proved successively for \( x = 0 \), \( x \in \mathbb{Z}^+ \), \( x \in \mathbb{Z} \), and \( x = p/q \in \mathbb{Q} \)).
• Over \( \mathbb{R} \): \( f(x) = cx \) holds if ANY regularity condition is known: monotonicity, continuity, boundedness on an interval, or \( f(x) \ge 0 \) for \( x \ge 0 \)!

● Theorem 10.2 — Lifting the Exponent (LTE), Orthocenter Reflection & Mantel’s Theorem

1. Lifting the Exponent Lemma (LTE): Let \( p \) be an odd prime and \( x, y \in \mathbb{Z} \) with \( p \nmid x \) and \( p \nmid y \):
• If \( p \mid (x - y) \), then for every integer \( n \ge 1 \): \( v_p(x^n - y^n) = v_p(x - y) + v_p(n) \).
• If \( p \mid (x + y) \) and \( n \) is odd: \( v_p(x^n + y^n) = v_p(x + y) + v_p(n) \).

2. Orthocenter Reflection Lemma: In \( \triangle ABC \) with orthocenter \( H \), circumcircle \( \omega \), altitude foot \( D \in BC \), and midpoint \( M \) of \( BC \):
(i) The reflection \( H_D \) of \( H \) across \( BC \) lies on \( \omega \) (\( HD = DH_D \));
(ii) The reflection \( H_M \) of \( H \) across \( M \) ALSO lies on \( \omega \), and \( H_M = A' \) is the antipode of \( A \) (diameter \( AA' = 2R \)), implying \( AH^2 + BC^2 = 4R^2 \)!

3. Mantel’s Extremal Graph Theorem: Any simple graph on \( n \) vertices with NO triangle (\( K_3 \)) has at most \( \left\lfloor \frac{n^2}{4} \right\rfloor \) edges, achieved uniquely by the balanced complete bipartite graph \( K_{\lfloor n/2 \rfloor, \lceil n/2 \rceil} \).

◆ Proof — Synthetic Proof of the Orthocenter Reflection & Diameter Lemma

1. Reflection \( H_D \) across \( BC \): Assume \( \triangle ABC \) is acute (obtuse is analogous). In right triangles \( \triangle BDH \) and \( \triangle ADC \), \( \angle BHD = 90^\circ - \angle HBD = 90^\circ - (90^\circ - C) = C \), and similarly \( \angle CHD = B \), so \( \angle BHC = 180^\circ - A \). Reflecting \( H \) across \( BC \) to \( H_D \) preserves angles: \( \angle BH_D C = \angle BHC = 180^\circ - A \), so \( \angle BAC + \angle BH_D C = 180^\circ \implies A, B, H_D, C \) are concyclic!

2. Reflection across midpoint \( M \): Let \( A' \) be the antipode of \( A \) on \( (ABC) \). Since \( AA' \) is a diameter, \( \angle ABA' = \angle ACA' = 90^\circ \), so \( BA' \perp AB \). Meanwhile \( CH \perp AB \), forcing \( BA' \parallel CH \)! Symmetrically \( CA' \parallel BH \). Therefore \( BHCA' \) is a parallelogram, whose diagonals \( BC \) and \( HA' \) bisect each other at \( M \)! Also \( BA' = CH \) and in right \( \triangle ACA' \) (with \( B' \) or \( A'C = BH \)), \( BC^2 + AH^2 = BC^2 + (2OM)^2 = BC^2 + 4(R^2 - BM^2) = 4R^2 \). \( \blacksquare \)

LTE Warning at \(p = 2\)
For odd \(x,y\) and EVEN \(n\): \(v_2(x^n - y^n) = v_2(x-y) + v_2(x+y) + v_2(n) - 1\)!
Nine-Point Circle (Feuerbach)
Passes through 3 midpoints, 3 altitude feet & 3 Euler midpoints; radius \(R/2\), center midpoint of \(OH\)
FE Involution Signature
Whenever \(f(f(x))\) appears, prove \(f\) is injective or surjective FIRST!
Orthocenter Identity
\(AH = 2R|\cos A|\) and \(AH^2 + BC^2 = 4R^2\)
Mantel’s Extremal Construction for \(n = 6\): bipartite \(K_{3,3}\) achieves \(9 = \lfloor 36/4 \rfloor\) edges with zero triangles (every cycle in a bipartite graph has even length); adding a 10th edge immediately forces a triangle!
Titu’s Lemma in Action (NSMO Riyadh Finals): on \(x \in (0, 3)\), \(\frac{1^2}{x} + \frac{2^2}{3-x} \ge \frac{(1+2)^2}{x + (3-x)} = \frac{9}{3} = 3\), attaining exact equality where \(\frac{1}{x} = \frac{2}{3-x} \iff x = 1\).
⊙ Explorer · NSMO Riyadh Finals Lab: Orthocenter Reflections on Circumcircle (ABC)
interactive
Lengths \((AH, BC)\)AH=4.59, BC=6.55
Invariant \(AH^2 + BC^2\)64.00 = 4R² (R=4)
Reflection \(OH_D\) Radius4.00 = R ✓

Move vertex \(A\) around circumcircle \(\omega(O, R=4)\): watch \(H\) move inside \(\triangle ABC\) while its reflection \(H_D\) across \(BC\) and \(H_M = A'\) across midpoint \(M\) stay glued to \(\omega\), keeping \(AH^2 + BC^2 = 64.00\) invariant!

Worked Example 10.A — Functional Equation Proof Over ℝ (NSMO Stage 3 / IMO Style)
Problem. Find all functions \( f: \mathbb{R} \to \mathbb{R} \) satisfying \( f(x^2 + f(y)) = y + (f(x))^2 \) for all \( x, y \in \mathbb{R} \).
▸ Show step-by-step solution

7-Point Olympiad Proof:
Claim 1 (Injectivity & Surjectivity): Setting \( x = 0 \) gives \( f(f(y)) = y + c^2 \) where \( c = f(0) \). If \( f(a) = f(b) \), then \( a + c^2 = f(f(a)) = f(f(b)) = b + c^2 \implies a = b \) (injective), and every \( z \in \mathbb{R} \) equals \( f(f(z - c^2)) \) (surjective).
Claim 2 (\( f(0) = 0 \)): By surjectivity, pick \( u \) with \( f(u) = 0 \). Plugging \( y = u \) into \( f(f(y)) = y + c^2 \) gives \( c = f(0) = u + c^2 \). Meanwhile setting \( x = u, y = 0 \) in the original equation gives \( f(u^2 + c) = 0 + 0 = f(u) \); by injectivity \( u^2 + c = u \). Adding \( c = u + c^2 \) and \( u = u^2 + c \) gives \( u^2 + c^2 = 0 \implies u = c = 0 \), so \( f(0) = 0 \) and \( f(f(y)) = y \)!
Claim 3 (Positivity & Additivity): Setting \( y = 0 \) yields \( f(x^2) = f(x)^2 \ge 0 \), so \( f(z) \ge 0 \) for all \( z \ge 0 \). Replacing \( x^2 \) by \( t \ge 0 \) and \( y \) by \( f(s) \) (using \( f(f(s)) = s \)) yields \( f(t + s) = f(s) + f(t) \) for \( t \ge 0 \), which extends to all \( s, t \in \mathbb{R} \) because \( f(-x) = -f(x) \). Additivity + \( f(z) \ge 0 \) for \( z \ge 0 \) implies \( f \) is non-decreasing, hence \( f(x) = kx \); testing \( (kx)^2 = k x^2 \) with \( k(kx) = x \) forces \( k = 1 \).
Verification: \( f(x) = x \) satisfies \( x^2 + y = y + x^2 \) identically. Thus \( f(x) = x \) is the unique solution! \( \blacksquare \)

Worked Example 10.B — Lifting the Exponent (LTE) Exact Prime Power (Mawhiba Camp)
Problem. Find the largest integer \( k \) such that \( 3^k \) divides \( 7^{81} - 1 \), and determine the smallest positive integer \( n \) such that \( 3^{10} \mid (7^n - 1) \).
▸ Show step-by-step solution

Since \( p = 3 \) is an odd prime, \( 3 \nmid 7 \), and \( 7 - 1 = 6 \) is divisible by \( 3 \), the hypotheses of LTE hold cleanly for \( x = 7,\; y = 1 \)!
1. For \( n = 81 = 3^4 \):
\[ v_3(7^{81} - 1) = v_3(7 - 1) + v_3(81) = v_3(6) + 4 = 1 + 4 = 5 \implies k = 5. \]
2. For \( 3^{10} \mid (7^n - 1) \), we need \( v_3(7^n - 1) \ge 10 \iff 1 + v_3(n) \ge 10 \iff v_3(n) \ge 9 \). The smallest positive integer with \( 3^9 \mid n \) is \( n = 3^9 = 19{,}683 \).

Worked Example 10.C — Orthocenter Distance & Circumradius Synthesis (NSMO Finals)
Problem. In acute \( \triangle ABC \) with circumradius \( R = 10 \) and side \( BC = 16 \), let \( H \) be the orthocenter and \( D \) be the foot of the altitude from \( A \) to \( BC \). Given \( HD = 3 \), find the exact altitude \( AD \) and area \( [ABC] \).
▸ Show step-by-step solution


1. By the Orthocenter Diameter Lemma (Theorem 10.2), \( AH^2 + BC^2 = 4R^2 \):
\[ AH^2 = 4(10^2) - 16^2 = 400 - 256 = 144 \implies AH = 12. \]
2. Since \( \triangle ABC \) is acute, \( H \) lies strictly inside \( \triangle ABC \) on segment \( AD \), so:
\[ AD = AH + HD = 12 + 3 = 15. \]
3. Therefore \( [ABC] = \frac{1}{2} \cdot BC \cdot AD = \frac{1}{2}(16)(15) = 120 \). (Notice \( BD \cdot DC = HD \cdot AD = 3 \times 15 = 45 \) and \( BD + DC = 16 \implies \{BD, DC\} = \{16 \text{ split? } \Delta = 256 - 180 = 76 > 0\} \), so a real acute triangle exists!)

Worked Example 10.D — Multiplicative Order Obstruction for Prime Divisors (IMO / NSMO TST)
Problem. Prove that every odd prime divisor \( q \) of \( N = n^4 + 1 \) satisfies \( q \equiv 1 \pmod 8 \).
▸ Show step-by-step solution

7-Point Olympiad Proof:
1. Suppose odd prime \( q \mid (n^4 + 1) \). Then \( q \nmid n \) and \( n^4 \equiv -1 \pmod q \).
2. Squaring gives \( n^8 \equiv 1 \pmod q \). Let \( d = \operatorname{ord}_q(n) \) be the multiplicative order of \( n \) modulo \( q \).
3. By the fundamental property of multiplicative order, \( n^8 \equiv 1 \pmod q \implies d \mid 8 \), so \( d \in \{1, 2, 4, 8\} \).
4. However, \( n^4 \equiv -1 \not\equiv 1 \pmod q \) (since \( q \) is odd, \( 1 \not\equiv -1 \pmod q \)), so \( d \nmid 4 \)! This eliminates \( 1, 2, 4 \) and forces \( d = 8 \).
5. By Fermat’s Little Theorem \( n^{q-1} \equiv 1 \pmod q \), which requires \( d \mid (q - 1) \), i.e., \( 8 \mid (q - 1) \iff q \equiv 1 \pmod 8 \)! \( \blacksquare \)

⚠ Finals Proof Trap — Never Apply Standard Odd-Prime LTE Directly to p = 2!

For \( p = 2 \) and odd \( x, y \) with even \( n \), \( v_2(x^n - y^n) \ne v_2(x-y) + v_2(n) \)! Because \( x^2 - y^2 = (x-y)(x+y) \) picks up factors of \( 2 \) from BOTH \( x - y \) and \( x + y \), the correct \( p = 2 \) LTE formula for even \( n \) is \( v_2(x^n - y^n) = v_2(x - y) + v_2(x + y) + v_2(n) - 1 \).

▲ Mawhiba IMO Camp Strategy — Always Check Simple Ansätze First in Functional Equations

Spend your first \( 90 \) seconds on any functional equation testing \( f(x) = c \), \( f(x) = cx \), \( f(x) = x + c \), and \( f(x) = x^2 \). Knowing in advance whether \( f(x) = 0 \) or \( f(x) = -x \) is ALSO a valid solution prevents you from dividing by \( f(x) \) illegally and losing 2–3 rubric points!

[Practice 10.1 · NSMO Finals Warmup] Using Lifting the Exponent (LTE), find the exact \( 5 \)-adic valuation \( v_5(11^{125} - 1) \).
💡 Hint 1 of 3
Verify \( p = 5 \) is odd, \( 5 \nmid 11 \), and \( 5 \mid (11 - 1) = 10 \).
💡 Hint 2 of 3
Apply \( v_5(11^{125} - 1) = v_5(11 - 1) + v_5(125) \).
💡 Hint 3 of 3
Add \( 1 + 3 \).
By LTE for odd prime \( p = 5 \), \( v_5(11^{125} - 1) = v_5(10) + v_5(5^3) = 1 + 3 = 4 \).
[Practice 10.2 · NSMO Stage 3] What is the maximum possible number of edges in a simple graph on \( 15 \) vertices that contains NO triangle (\( K_3 \))?
💡 Hint 1 of 3
Apply Mantel’s Theorem \( e_{\max} = \left\lfloor \frac{n^2}{4} \right\rfloor \).
💡 Hint 2 of 3
Equivalently compute edges of \( K_{7, 8} \).
💡 Hint 3 of 3
Multiply \( 7 \times 8 \).
By Mantel’s Theorem, the maximum edge count is \( \left\lfloor \frac{15^2}{4} \right\rfloor = \left\lfloor \frac{225}{4} \right\rfloor = 56 \), realized by \( K_{7, 8} \) (\( 7 \times 8 = 56 \)).
[Practice 10.3 · NSMO Stage 3] In \( \triangle ABC \), the circumradius is \( R = 13 \) and side \( BC = 24 \). Find the exact distance \( AH \) from vertex \( A \) to the orthocenter \( H \).
💡 Hint 1 of 3
Use the Orthocenter–Circumradius identity \( AH^2 + BC^2 = 4R^2 \).
💡 Hint 2 of 3
Substitute \( R = 13 \) (\( 2R = 26 \)) and \( BC = 24 \).
💡 Hint 3 of 3
Recognize the \( 10\text{\text{-}}24\text{\text{-}}26 \) right triangle!
From \( AH^2 + BC^2 = (2R)^2 \), we get \( AH^2 = 26^2 - 24^2 = (26 - 24)(26 + 24) = 2 \times 50 = 100 \implies AH = 10 \).
[Practice 10.4 · Mawhiba Olympiad Camp] Find the exact \( 2 \)-adic valuation \( v_2(5^{24} - 1) \) using the \( p = 2 \) Lifting the Exponent formula.
💡 Hint 1 of 3
Since \( n = 24 \) is even and \( 5, 1 \) are odd, use \( v_2(x^n - y^n) = v_2(x - y) + v_2(x + y) + v_2(n) - 1 \).
💡 Hint 2 of 3
Compute \( v_2(4) = 2 \), \( v_2(6) = 1 \), and \( v_2(24) = 3 \).
💡 Hint 3 of 3
Evaluate \( 2 + 1 + 3 - 1 \).
By the \( p = 2 \) LTE formula for even \( n \), \( v_2(5^{24} - 1) = v_2(4) + v_2(6) + v_2(24) - 1 = 2 + 1 + 3 - 1 = 5 \) (so \( 2^5 = 32 \parallel 5^{24} - 1 \)).
[Practice 10.5 · Saudi IMO TST Style] Suppose \( f: \mathbb{Z} \to \mathbb{Z} \) satisfies \( f(x + y) = f(x) + f(y) + 2xy \) for all \( x, y \in \mathbb{Z} \), and \( f(1) = 4 \). Find \( f(10) \).
💡 Hint 1 of 3
Notice \( (x + y)^2 = x^2 + y^2 + 2xy \) has the EXACT same cross-term \( +2xy \)!
💡 Hint 2 of 3
Define the auxiliary function \( g(x) = f(x) - x^2 \) and check \( g(x + y) \).
💡 Hint 3 of 3
Since \( g(1) = f(1) - 1 = 3 \), deduce \( g(x) = 3x \implies f(x) = x^2 + 3x \).
Subtracting \( (x+y)^2 = x^2 + y^2 + 2xy \) shows \( g(x) = f(x) - x^2 \) satisfies Cauchy’s equation \( g(x+y) = g(x) + g(y) \) over \( \mathbb{Z} \). Thus \( g(x) = g(1)x = (4 - 1)x = 3x \), so \( f(x) = x^2 + 3x \) (which checks: \( (x+y)^2 + 3(x+y) = x^2+3x + y^2+3y + 2xy \)). Hence \( f(10) = 100 + 30 = 130 \).

NSMO of KSA (Stage 3): Riyadh National Finals & Mawhiba Saudi IMO Team Pathway — Competition Proof Benchmark

6 pts No Calculator
For positive integer \(n\) and quadratic \(P(x) = x^2 + 3x + 10\) in NSMO of KSA (Stage 3): Riyadh National Finals & Mawhiba Saudi IMO Team Pathway, examine algebraic invariants below.
  1. (a)2 pts
    Express \(4P(x)\) as a square plus a positive constant.
    Scoring Guideline & Justification
    • [M1] Completes square on 4x^2 + 12x (1 pt)
    • [A1] Obtains (2x + 3)^2 + 31 (1 pt)
  2. (b)2 pts
    Deduce why \(P(n)\) has no real roots for any \(n\in\mathbb{R}\).
    Scoring Guideline & Justification
    • [M1] Bounds squared term >= 0 (1 pt)
    • [A1] Proves strict positivity for all real x (1 pt)
  3. (c)2 pts
    Find the remainder when \(P(10) - P(0)\) is divided by \(10\).
    Scoring Guideline & Justification
    • [M1] Computes 100 + 10k = 10(10 + k) (1 pt)
    • [A1] States remainder is 0 (1 pt)
Complete Worked Solution
(a) \(4P(x) = (2x+3)^2 + 31\). (b) Strictly positive discriminant check: \(4P(x) > 0\). (c) \(P(10)-P(0) = 10(10+3) \equiv 0 \pmod{10}\).
📝 Chapter Quiz