7.1 Whole Numbers, Integers, Order of Operations & Number Theory

Key Takeaways

  • PEMDAS has four priority levels, not six: Multiplication and Division share the third level (left to right), and Addition and Subtraction share the fourth level (left to right)

  • Subtracting a negative integer equals adding its positive opposite (a−(−b)=a+ba - (-b) = a + b), while multiplying or dividing two numbers with matching signs gives a positive result and opposite signs give a negative result

  • Absolute value ∣x∣|x| measures distance from 00 and is always non-negative, and absolute value bars act as grouping symbols whose inside expression must be simplified first

  • To test whether a whole number n>1n>1 is prime, try prime divisors up to and including n\sqrt{n}.

  • Prime factorization yields both the Greatest Common Factor (GCF, shared primes with smallest exponents) and the Least Common Multiple (LCM, all primes present with largest exponents)

Last updated: November 2026

Whole Numbers, Integers, Order of Operations & Number Theory

Number-sense items on the TACHS exam reward accuracy on fundamentals. A single sign slip, a misapplied order-of-operations step, or assuming a number like 5151 is prime can cost an easy point—especially because incorrect answers on multiple-choice questions are specifically designed to match those predictable mistakes.

Order of Operations (PEMDAS)

Many students memorize the acronym PEMDAS (Parentheses, Exponents, Multiplication, Division, Addition, Subtraction) and mistakenly think multiplication always comes before division or addition always comes before subtraction. In reality, PEMDAS has four tiers, not six:

  1. Grouping symbols first (P): Parentheses (...), brackets [...], fraction bars (simplify the entire numerator and entire denominator separately before dividing), and absolute value bars |...|.
  2. Exponents and roots second (E): Evaluate powers like 323^2 and square roots like 25\sqrt{25} after simplifying any grouping inside them.
  3. Multiplication and Division third (MD): Work strictly from left to right, whichever appears first.
  4. Addition and Subtraction fourth (AS): Work strictly from left to right, whichever appears first.

Consider the classic trap 24÷6×224 \div 6 \times 2. If you multiply 6×26 \times 2 first, you get 24÷12=224 \div 12 = 2, which is incorrect. Working left to right gives 24÷6=424 \div 6 = 4, and then 4×2=84 \times 2 = 8.

Worked Example 1: Multi-Step Order of Operations

Evaluate 36÷(2+4)×3−2336 \div (2 + 4) \times 3 - 2^3.

  1. Grouping symbols: Simplify inside the parentheses: 2+4=62 + 4 = 6, giving 36÷6×3−2336 \div 6 \times 3 - 2^3.
  2. Exponents: Compute 23=82^3 = 8, giving 36÷6×3−836 \div 6 \times 3 - 8.
  3. Multiply and divide left to right: First 36÷6=636 \div 6 = 6, then 6×3=186 \times 3 = 18, leaving 18−818 - 8.
  4. Add and subtract left to right: 18−8=1018 - 8 = 10.

Signed Integer Arithmetic & Absolute Value

Integers include positive whole numbers, negative whole numbers, and zero (…,−3,−2,−1,0,1,2,3,…\dots, -3, -2, -1, 0, 1, 2, 3, \dots). Keep the sign rules distinct for adding/subtracting versus multiplying/dividing. The multiplication and division sign rules below apply to nonzero operands. Multiplying by zero gives zero, and dividing by zero is undefined:

OperationRuleExample
Add, same signsAdd magnitudes and keep the common sign−3+(−8)=−11-3 + (-8) = -11
Add, different signsSubtract the smaller magnitude from the larger and use the sign of the larger magnitude. Equal magnitudes give zero.−14+9=−5-14 + 9 = -5
SubtractRewrite as adding the opposite: a−b=a+(−b)a - b = a + (-b) and a−(−b)=a+ba - (-b) = a + b−7−(−12)=−7+12=5-7 - (-12) = -7 + 12 = 5
Multiply / Divide, same signsResult is positive(−6)(−4)=24(-6)(-4) = 24 and −45÷(−5)=9-45 \div (-5) = 9
Multiply / Divide, opposite signsResult is negative(−6)(4)=−24(-6)(4) = -24 and −45÷9=−5-45 \div 9 = -5

Absolute Value

The absolute value of a number xx, written ∣x∣|x|, is its distance from 00 on the number line. Because distance is never negative, ∣x∣≥0|x| \ge 0 for every number: ∣−9∣=9|-9| = 9, ∣9∣=9|9| = 9, and ∣0∣=0|0| = 0.

When an expression sits inside absolute value bars, simplify inside the bars before taking the absolute value, just as you would with parentheses:

∣4−11∣−∣−3∣=∣−7∣−3=7−3=4|4 - 11| - |-3| = |-7| - 3 = 7 - 3 = 4

Notice that ∣−3∣|-3| becomes 33, so subtracting ∣−3∣|-3| subtracts 33—the two minus signs do not cancel through an absolute value bar.

Worked Example 2: Combined Signed Integers & Absolute Value

Evaluate −18÷3−(−4)(2)+∣5−9∣-18 \div 3 - (-4)(2) + |5 - 9|.

  1. Grouping (absolute value): 5−9=−45 - 9 = -4, and ∣−4∣=4|-4| = 4. The expression becomes −18÷3−(−4)(2)+4-18 \div 3 - (-4)(2) + 4.
  2. Divide and multiply left to right: −18÷3=−6-18 \div 3 = -6, and (−4)(2)=−8(-4)(2) = -8. Now we have −6−(−8)+4-6 - (-8) + 4.
  3. Subtracting a negative: Rewrite −(−8)-(-8) as +8+ 8: −6+8+4-6 + 8 + 4.
  4. Add left to right: −6+8=2-6 + 8 = 2, and 2+4=62 + 4 = 6.

Divisibility Rules

Divisibility tests let you factor numbers, simplify fractions, and spot composite numbers without trial division:

DivisorDivisibility TestQuick Example
2Last digit is even (0,2,4,6,80, 2, 4, 6, 8)1,3481,348 ends in 88 (yes)
3Sum of digits is divisible by 335151: 5+1=65 + 1 = 6 (yes)
4Last two digits form a number divisible by 44724724: 24÷4=624 \div 4 = 6 (yes)
5Last digit is 00 or 55635635 ends in 55 (yes)
6Divisible by both 22 and 33432432: even and 4+3+2=94+3+2=9 (yes)
9Sum of digits is divisible by 99657657: 6+5+7=186 + 5 + 7 = 18 (yes)
10Last digit is 00890890 ends in 00 (yes)

Prime vs. Composite Numbers

A prime number is a whole number greater than 11 with exactly two factors: 11 and itself (2,3,5,7,11,13,17,19,23,…2, 3, 5, 7, 11, 13, 17, 19, 23, \dots). A composite number is a whole number greater than 11 that has more than two factors. Remember two key facts:

  • 00 and 11 are neither prime nor composite.
  • 22 is the only even prime number. Every even whole number greater than 22 has 22 as a proper factor.

Finding Factors of Odd Numbers

Odd numbers can still have small prime factors. Start with a divisibility test or a known multiplication fact:

  • 3939 is composite: 3+9=123+9=12 is divisible by 33, so 39=3×1339=3\times13.
  • 8585 is composite: It ends in 55, and 85=5×1785=5\times17.
  • 7777 is composite: It passes the tests for divisibility by 22, 33, and 55, but 77=7×1177=7\times11.

For a whole number n>1n>1, test prime divisors up to and including n\sqrt{n}. If nn is composite and n=abn=ab with a,b>1a,b>1, at least one factor is at most n\sqrt{n}. A prime divisor of that factor is also at most n\sqrt{n}. The endpoint matters for squares such as 49=7249=7^2. For example, to test 9797, note that 97<10\sqrt{97} < 10, so you only check 2,3,5,2, 3, 5, and 77. None divide 9797 evenly (97=7×13+697 = 7 \times 13 + 6), proving 9797 is prime. By contrast, 9191 fails 2,3,2, 3, and 55, yet 91=7×1391 = 7 \times 13, so 9191 is composite.


Prime Factorization, GCF & LCM

Every composite whole number can be written as a product of primes that is unique up to the order of the factors (its prime factorization). Prime factorization gives a foolproof method for finding both the Greatest Common Factor (GCF) and the Least Common Multiple (LCM).

Worked Example 3: Finding GCF and LCM of 3636 and 5454

  1. Factor each number into primes:
36=4×9=22×3236 = 4 \times 9 = 2^2 \times 3^2 54=2×27=21×3354 = 2 \times 27 = 2^1 \times 3^3
  1. GCF (shared primes, smallest exponents): Both numbers share the primes 22 and 33. Taking the smaller exponent on each gives 21×32=2×9=182^1 \times 3^2 = 2 \times 9 = 18.
  2. LCM (all primes present, largest exponents): Taking the larger exponent on each prime gives 22×33=4×27=1082^2 \times 3^3 = 4 \times 27 = 108.
  3. Quick sanity check: For any two positive integers aa and bb, GCF(a,b)×LCM(a,b)=a×b\text{GCF}(a, b) \times \text{LCM}(a, b) = a \times b. Here 18×108=1,94418 \times 108 = 1,944 and 36×54=1,94436 \times 54 = 1,944.

In word problems, GCF answers questions about finding the greatest number of identical groups when all items of each type must be used, while LCM answers questions about when repeating cycles or schedules happen together again.

Loading diagram...
The Four-Tier Order of Operations
Test Your Knowledge

Evaluate the expression 48÷4×3−(2+1)248 \div 4 \times 3 - (2 + 1)^2.

A

-5

B

27

C

31

D

30

Test Your Knowledge

What is the value of −12−(−5)+∣3−10∣-12 - (-5) + |3 - 10|?

A

-10

B

-14

C

24

D

0

Test Your Knowledge

A student crosses out numbers below 100 that are divisible by 2, 3, 5, or 7. Which of the following numbers is left and must be prime?

A

83

B

77

C

87

D

49

Test Your Knowledge

Two school bells ring on different schedules: one rings every 1818 minutes and the other rings every 2424 minutes. If both ring together at 8:00 a.m., after how many minutes will they next ring together?

A

6 minutes

B

42 minutes

C

72 minutes

D

432 minutes

Sections you finish are checked off in the contents.