8.1 Number Sets, Parity, Consecutive Sums, Factorials & Base-n Arithmetic (Taban Aritmetiği)

Key Takeaways

  • In Turkish mathematics notation, the set of natural numbers includes zero (N={0,1,2,3,… }\mathbb{N} = \{0, 1, 2, 3, \dots\}), whereas counting numbers (Sayma Sayıları) start at one (N+=Z+={1,2,3,… }\mathbb{N}^+ = \mathbb{Z}^+ = \{1, 2, 3, \dots\}).

  • Parity rules (O±O=EO \pm O = E, E±O=OE \pm O = O, O×O=OO \times O = O) and positive-exponent power rules apply strictly when variables are known to be integers; if a∈Ra \in \mathbb{R} or exponents can be zero or negative, test non-integer and zero-power counterexamples.

  • For any arithmetic sequence with constant step dd, the number of terms is Last−Firstd+1\frac{\text{Last} - \text{First}}{d} + 1 and the sum is (Number of Terms)×First+Last2(\text{Number of Terms}) \times \frac{\text{First} + \text{Last}}{2}.

  • Legendre's formula counts the exact power of a prime pp dividing n!n! via ∑k≥1⌊npk⌋\sum_{k \ge 1} \lfloor \frac{n}{p^k} \rfloor; the number of trailing zeros of n!n! equals the exponent of 55 in its prime factorization.

  • A positional numeral (dk…d1d0)b=∑i=0kdibi(d_k \dots d_1 d_0)_b = \sum_{i=0}^k d_i b^i is valid if and only if the base b≥2b \ge 2, the leading digit dk≠0d_k \ne 0, and every digit satisfies 0≤di<b0 \le d_i < b.

Last updated: October 2026

8.1 Number Sets, Parity, Consecutive Sums, Factorials & Base-nn Arithmetic (Taban Aritmetiği)


1. Turkish Exam Number Set Notation (Temel Kavramlar ve Sayı Kümeleri)

Before solving any equation or inequality, inspect the set membership symbol (∈\in) given at the top of the question. Turkish mathematics conventions use strict definitions that differ slightly from some international textbooks:

  • Digits (Rakamlar): The ten base-10 symbols used to write numerals:
Rakamlar={0,1,2,3,4,5,6,7,8,9}\text{Rakamlar} = \{0, 1, 2, 3, 4, 5, 6, 7, 8, 9\}

Every digit is a number, but multi-digit or negative integers are not digits. If a question specifies that a,b,ca, b, c are rakamlar, they are automatically bounded by 0≤a,b,c≤90 \le a, b, c \le 9. Read carefully whether the problem says rakamları farklı (distinct digits).

  • Natural Numbers (Doğal Sayılar, N\mathbb{N}): In the Turkish curriculum, zero is a natural number:
N={0,1,2,3,4,… }\mathbb{N} = \{0, 1, 2, 3, 4, \dots\}
  • Counting Numbers (Sayma Sayıları, N+\mathbb{N}^+ or Z+\mathbb{Z}^+): Positive integers starting at 11:
N+=Z+={1,2,3,4,… }\mathbb{N}^+ = \mathbb{Z}^+ = \{1, 2, 3, 4, \dots\}
  • Integers (Tam Sayılar, Z\mathbb{Z}): The union of negative integers, zero, and positive integers:
Z=Z−∪{0}∪Z+={…,−3,−2,−1,0,1,2,3,… }\mathbb{Z} = \mathbb{Z}^- \cup \{0\} \cup \mathbb{Z}^+ = \{\dots, -3, -2, -1, 0, 1, 2, 3, \dots\}

Crucially, 00 is neither positive nor negative (0∉Z+0 \notin \mathbb{Z}^+ and 0∉Z−0 \notin \mathbb{Z}^-). Whenever a question asks for the minimum natural number, consider 00; whenever it asks for the minimum counting number or positive integer, start at 11.

  • Rational (Rasyonel, Q\mathbb{Q}), Irrational (İrrasyonel, Q′\mathbb{Q}' or I\mathbb{I}), and Real Numbers (Gerçek / Reel Sayılar, R\mathbb{R}):
Q={ab  |  a,b∈Z,  b≠0},R=Q∪Q′\mathbb{Q} = \left\{\frac{a}{b} \;\middle|\; a, b \in \mathbb{Z},\; b \ne 0\right\}, \qquad \mathbb{R} = \mathbb{Q} \cup \mathbb{Q}'

Sum-Product Extremum Rules (Toplam-Çarpım Ekstremum Kuralları)

  1. Fixed Sum, Extremize Product (a+b=Sa + b = S for a,b∈N+a, b \in \mathbb{N}^+):
    • To maximize a⋅ba \cdot b, choose aa and bb as close to each other as possible (equal if permitted; otherwise the closest distinct integers compatible with the sum).
    • To minimize a⋅ba \cdot b, choose aa and bb as far apart as possible (e.g., 11 and S−1S - 1 in N+\mathbb{N}^+, or 00 and SS in N\mathbb{N}).
  2. Fixed Product, Extremize Sum (a⋅b=Pa \cdot b = P for a,b∈N+a, b \in \mathbb{N}^+):
    • To maximize a+ba + b, choose factors as far apart as possible (11 and PP).
    • To minimize a+ba + b, choose factors as close together as possible.
  3. The Domain Trap (Z\mathbb{Z} vs. R\mathbb{R}):
    • If a,b∈Za, b \in \mathbb{Z} (allowing negatives) and a⋅b=24a \cdot b = 24, the minimum value of a+ba + b is not 4+6=104 + 6 = 10, but (−1)+(−24)=−25(-1) + (-24) = -25!
    • If a,b∈R+a, b \in \mathbb{R}^+ and a+b=9a + b = 9, you are not restricted to integers 44 and 55; the maximum product occurs at a=b=92=4.5a = b = \frac{9}{2} = 4.5, yielding a⋅b=814=20.25a \cdot b = \frac{81}{4} = 20.25.

2. Parity (Tek ve Çift Sayılar), Sign Analysis (İşaret İncelemesi), and Consecutive Sums (Ardışık Sayılar)

Parity Rules (Tek = O, Çift = E)

Parity is a property of integers only (Z\mathbb{Z}); non-integer fractions have neither odd nor even parity. Let OO denote an odd integer (2k−12k - 1) and EE denote an even integer (2k2k, including 00 and negative evens like −4-4):

O±O=E,E±E=E,O±E=OO \pm O = E, \qquad E \pm E = E, \qquad O \pm E = O O×O=O,E×O=E,E×E=EO \times O = O, \qquad E \times O = E, \qquad E \times E = E

A product x1x2⋯xmx_1 x_2 \cdots x_m of integers is odd if and only if every single factor is odd; if at least one factor is even, the entire product is even.

For positive integer exponents (n∈Z+n \in \mathbb{Z}^+), exponentiation preserves parity: On=OO^n = O and En=EE^n = E. However, watch for two classic TR-YÖS traps:

  • Zero or Negative Exponents: If n∈Nn \in \mathbb{N} or n∈Zn \in \mathbb{Z}, an even base raised to the zero power becomes odd (20=12^0 = 1), and negative exponents yield non-integers (2−2=142^{-2} = \frac{1}{4}).
  • Unconstrained Base (a∈Ra \in \mathbb{R}): If a problem states "a2a^2 is an even integer" without declaring a∈Za \in \mathbb{Z}, you cannot conclude that aa is an even integer (for example, a=6a = \sqrt{6} gives a2=6a^2 = 6, which is even, yet a3=66a^3 = 6\sqrt{6} is not even an integer).

Sign Analysis (İşaret İncelemesi)

When determining signs of x,y,z∈R∖{0}x, y, z \in \mathbb{R} \setminus \{0\} from inequalities such as x2k⋅y2m+1<0x^{2k} \cdot y^{2m+1} < 0:

  1. Any even power x2kx^{2k} is strictly positive (x2k>0x^{2k} > 0) regardless of whether xx is positive or negative. Cancel x2kx^{2k} from multiplicative sign inequalities immediately (retaining only that x≠0x \ne 0), without flipping the inequality sign.
  2. Any odd power y2m+1y^{2m+1} has the exact same sign as yy: replace y2m+1y^{2m+1} with y1=yy^1 = y.

Consecutive Numbers & Gauss Summation (Ardışık Sayılar ve Toplam Formülleri)

Consecutive integers advance by 11 (n,n+1,n+2n, n+1, n+2), while consecutive even or consecutive odd integers both advance by step 22 (n,n+2,n+4n, n+2, n+4). Consequently, the difference between any two consecutive terms in an even or odd sequence is ±2\pm 2, independent of nn.

For any arithmetic progression a1,a2,…,aka_1, a_2, \dots, a_k with constant step dd:

Number of Terms (Terim Sayısı)=Last Term−First Termd+1\text{Number of Terms (Terim Sayısı)} = \frac{\text{Last Term} - \text{First Term}}{d} + 1 Sum (Toplam)=(Number of Terms)×(First Term+Last Term2)\text{Sum (Toplam)} = (\text{Number of Terms}) \times \left(\frac{\text{First Term} + \text{Last Term}}{2}\right)

Memorize the three foundational Gauss formulas starting at 11:

  • First nn counting numbers: 1+2+3+⋯+n=n(n+1)21 + 2 + 3 + \dots + n = \frac{n(n+1)}{2}
  • First nn positive even integers: 2+4+6+⋯+2n=n(n+1)2 + 4 + 6 + \dots + 2n = n(n+1)
  • First nn positive odd integers: 1+3+5+⋯+(2n−1)=n21 + 3 + 5 + \dots + (2n-1) = n^2

3. Factorials (Faktöriyel) & Legendre's Formula

For n∈Nn \in \mathbb{N}, the factorial n!n! is defined by 0!=10! = 1, 1!=11! = 1, and n!=n⋅(n−1)!n! = n \cdot (n-1)! for n≥1n \ge 1. Using the elementary factorial definition, n!n! is defined for non-negative integers, an expression containing (n−4)!(n - 4)! and (4−n)!(4 - n)! simultaneously forces both n−4≥0n - 4 \ge 0 and 4−n≥04 - n \ge 0, which immediately pins down n=4n = 4.

When simplifying fractions with sums or differences of factorials, factor out the smallest factorial:

(n+1)!−n!(n−1)!=n!(n+1−1)(n−1)!=n⋅(n−1)!⋅n(n−1)!=n2\frac{(n+1)! - n!}{(n-1)!} = \frac{n!(n + 1 - 1)}{(n-1)!} = \frac{n \cdot (n-1)! \cdot n}{(n-1)!} = n^2

Legendre's Formula (Faktöriyel İçindeki Asal Çarpan Sayısı)

To find the largest integer exponent xx such that pxp^x divides n!n! (where pp is prime), divide nn successively by pp and sum the integer quotients:

Ep(n!)=⌊np⌋+⌊np2⌋+⌊np3⌋+⋯E_p(n!) = \left\lfloor \frac{n}{p} \right\rfloor + \left\lfloor \frac{n}{p^2} \right\rfloor + \left\lfloor \frac{n}{p^3} \right\rfloor + \cdots
  • Composite Base Case: If asked for the maximum xx in n!=kx⋅mn! = k^x \cdot m where kk is composite, factor kk into primes first. For k=∏pieik=\prod p_i^{e_i}, the maximum exponent is min⁡i⌊Epi(n!)/ei⌋\min_i\lfloor E_{p_i}(n!)/e_i\rfloor. Check every prime-power constraint; the largest prime alone need not control the result.
  • Trailing Zeros (Sondan Kaç Basamağı Sıfırdır): Every trailing zero in base 1010 corresponds to a factor of 10=2×510 = 2 \times 5. Because E2(n!)>E5(n!)E_2(n!) > E_5(n!) for all n≥2n \ge 2, the number of trailing zeros of n!n! (and likewise the number of trailing 99s of n!−1n! - 1) equals E5(n!)E_5(n!).

4. Positional Digit Decomposition (Basamak Kavramı) & Base-bb Arithmetic (Taban Aritmetiği)

A numeral (dk…d2d1d0)b(d_k \dots d_2 d_1 d_0)_b written in integer base b≥2b \ge 2 represents the polynomial expansion:

(dk…d2d1d0)b=dkbk+⋯+d2b2+d1b1+d0b0(d_k \dots d_2 d_1 d_0)_b = d_k b^k + \dots + d_2 b^2 + d_1 b^1 + d_0 b^0

subject to the strict digit constraint:

0≤di<bfor all i,dk≠00 \le d_i < b \quad \text{for all } i, \qquad d_k \ne 0

In base 1010, memorize the fast algebraic identities for two- and three-digit integers (ab)10=10a+b(ab)_{10} = 10a + b and (abc)10=100a+10b+c(abc)_{10} = 100a + 10b + c:

  • (ab)10+(ba)10=11(a+b)(ab)_{10} + (ba)_{10} = 11(a + b)
  • (ab)10−(ba)10=9(a−b)(ab)_{10} - (ba)_{10} = 9(a - b)
  • (abc)10−(cba)10=99(a−c)(abc)_{10} - (cba)_{10} = 99(a - c) (notice the middle digit bb cancels completely!)
  • (abc)10+(bca)10+(cab)10=111(a+b+c)(abc)_{10} + (bca)_{10} + (cab)_{10} = 111(a + b + c)

Direct Operations in Base bb

  • Addition in Base bb: Add column by column from right to left. Whenever a column sum S≥bS \ge b, write down the remainder (S mod b)(S \bmod b) and carry the quotient ⌊S/b⌋\lfloor S / b \rfloor to the next column.
  • Subtraction in Base bb: When the top digit is smaller than the bottom digit in a column, borrow 11 unit from the next left column, which adds +b+b (not +10+10!) to the current column.
  • Multiplication in Base bb: Multiply digit by digit from right to left just as in base 1010, but divide every intermediate product PP (plus any incoming carry) by the base bb: write down the remainder (P mod b)(P \bmod b) in the current column and carry the quotient ⌊P/b⌋\lfloor P / b \rfloor to the next left column, then add the shifted partial products in base bb.
  • Parity of (dk…d1d0)b(d_k \dots d_1 d_0)_b: If the base bb is even, parity depends solely on the last digit d0d_0. If the base bb is odd, parity equals the parity of the sum of the digits dk+⋯+d1+d0d_k + \dots + d_1 + d_0.

Summary Reference Table

Concept / StructureFormula or RuleCritical Exam Condition
Natural vs. Counting NumbersN={0,1,2,… }\mathbb{N} = \{0, 1, 2, \dots\} vs. N+={1,2,… }\mathbb{N}^+ = \{1, 2, \dots\}0∈N0 \in \mathbb{N}, 0∉Z+0 \notin \mathbb{Z}^+, 0∉Z−0 \notin \mathbb{Z}^-
Arithmetic Sum (Ardışık Toplam)(Last−FirstStep+1)⋅(Last+First2)\left(\frac{\text{Last} - \text{First}}{\text{Step}} + 1\right) \cdot \left(\frac{\text{Last} + \text{First}}{2}\right)Constant step dd between consecutive terms
Legendre's FormulaEp(n!)=∑k≥1⌊n/pk⌋E_p(n!) = \sum_{k \ge 1} \lfloor n / p^k \rfloorpp must be a prime number
Base-10 Reversal Identities(ab)−(ba)=9(a−b)(ab) - (ba) = 9(a-b); (abc)−(cba)=99(a−c)(abc) - (cba) = 99(a-c)a,c≠0a, c \ne 0 if both numerals are 2- or 3-digit
Base-bb Decomposition(abc)b=ab2+b1b+c(abc)_b = a b^2 + b_1 b + cb≥2b \ge 2, a≠0a \ne 0, and 0≤a,b1,c<b0 \le a, b_1, c < b

Worked Examples

Worked Example 8.1.1: Factorial Composite Divisors and Trailing Zeros

Problem: Let 63!=15x⋅12y⋅K63! = 15^x \cdot 12^y \cdot K, where x,y,K∈Z+x, y, K \in \mathbb{Z}^+. Find the maximum possible value of x+yx + y.

Solution:

  1. Decompose the composite bases into primes:
15x⋅12y=(3⋅5)x⋅(22⋅3)y=22y⋅3x+y⋅5x15^x \cdot 12^y = (3 \cdot 5)^x \cdot (2^2 \cdot 3)^y = 2^{2y} \cdot 3^{x+y} \cdot 5^x
  1. Count the available prime factors in 63!63! using Legendre's formula:
    • For p=5p = 5: ⌊63/5⌋+⌊12/5⌋=12+2=14\lfloor 63/5 \rfloor + \lfloor 12/5 \rfloor = 12 + 2 = 14. Thus x≤14x \le 14.
    • For p=3p = 3: ⌊63/3⌋+⌊21/3⌋+⌊7/3⌋=21+7+2=30\lfloor 63/3 \rfloor + \lfloor 21/3 \rfloor + \lfloor 7/3 \rfloor = 21 + 7 + 2 = 30. Thus x+y≤30x + y \le 30.
    • For p=2p = 2: ⌊63/2⌋+⌊31/2⌋+⌊15/2⌋+⌊7/2⌋+⌊3/2⌋=31+15+7+3+1=57\lfloor 63/2 \rfloor + \lfloor 31/2 \rfloor + \lfloor 15/2 \rfloor + \lfloor 7/2 \rfloor + \lfloor 3/2 \rfloor = 31 + 15 + 7 + 3 + 1 = 57. Thus 2y≤57  ⟹  y≤282y \le 57 \implies y \le 28.
  2. Maximize x+yx + y: The prime 33 directly bounds x+y≤30x + y \le 30. Check whether x+y=30x + y = 30 is achievable while satisfying x≤14x \le 14 and y≤28y \le 28: choosing x=14x = 14 and y=16y = 16 satisfies 14≤1414 \le 14, 16≤2816 \le 28, and x,y∈Z+x, y \in \mathbb{Z}^+. Therefore, max⁡(x+y)=30\max(x + y) = 30.

Worked Example 8.1.2: Base-bb Subtraction and Domain Constraints

Problem: Given the valid base-77 subtraction (a4c)7−(c4a)7=(2x4)7(a4c)_7 - (c4a)_7 = (2x4)_7, determine the digit xx and the difference a−ca - c.

Solution:

  1. Method 1 (Column Borrowing in Base 77): Since the difference (2x4)7(2x4)_7 is positive, a>ca > c.
    • Units column: Since c<ac < a, we cannot subtract aa from cc directly. Borrow 11 from the sevens column, adding +7+7 to the units digit: (c+7)−a=4  ⟹  a−c=3(c + 7) - a = 4 \implies a - c = 3.
    • Sevens column: The top digit 44 became 33 after lending 11. Now 3<43 < 4, so we borrow 11 from the 727^2 column, adding +7+7: (3+7)−4=6  ⟹  x=6(3 + 7) - 4 = 6 \implies x = 6.
  2. Method 2 (Polynomial Expansion Verification):
(a4c)7−(c4a)7=(49a+28+c)−(49c+28+a)=48(a−c)(a4c)_7 - (c4a)_7 = (49a + 28 + c) - (49c + 28 + a) = 48(a - c)

With a−c=3a - c = 3, the value is 48×3=14448 \times 3 = 144 in base 1010. Converting 144144 to base 77: 144=2×49+6×7+4=(264)7144 = 2 \times 49 + 6 \times 7 + 4 = (264)_7, confirming x=6x = 6 and a−c=3a - c = 3.

Review the Method

A positional numeral (dk…d1d0)b=∑i=0kdibi(d_k \dots d_1 d_0)_b = \sum_{i=0}^k d_i b^i is valid if and only if the base b≥2b \ge 2, the leading digit dk≠0d_k \ne 0, and every digit satisfies 0≤di<b0 \le d_i < b.

Test Your Knowledge

Let a,b,ca, b, c be real numbers (with no integer restriction stated) such that a2a^2 is an odd integer, bb is an even integer, and a2b+ca^2 b + c is an odd integer. Which of the following expressions is ALWAYS an odd integer?

A

a4+b⋅ca^4 + b \cdot c

B

a+b+ca + b + c

C

a3+ca^3 + c

D

a2+b+ca^2 + b + c

Test Your Knowledge

In the sum S=2⋅5+3⋅6+4⋅7+⋯+21⋅24S = 2 \cdot 5 + 3 \cdot 6 + 4 \cdot 7 + \dots + 21 \cdot 24, the first factor of every term is increased by 22 and the second factor of every term is decreased by 11. How does the value of SS change?

A

Increases by 270270

B

Decreases by 230230

C

Increases by 310310

D

Increases by 290290

Test Your Knowledge

How many trailing zeros are at the end of the base-1010 expansion of the sum 48!+49!48! + 49!?

A

1010

B

1212

C

1111

D

2020

Test Your Knowledge

If the positional numerals (3a2)b(3a2)_b and (24b)6(24b)_6 are both valid representations in their respective bases, what is the maximum possible base-1010 value of (3a2)b+(24b)6(3a2)_b + (24b)_6?

A

145145

B

182182

C

194194

D

198198

Sections you finish are checked off in the contents.