Lesson 18 of 46 · Arithmetic

Remainders, odd and even, and positive and negative

Write any remainder as an equation, work out remainders of sums and products, and settle odd, even and sign questions by rule, not by guessing.

About 20 minutes

In this lesson

  • Turn "leaves a remainder of r" into the form n=dq+rn = dq + r and list the numbers that fit.
  • Find the remainder of a sum, product or power from the remainders of its parts.
  • Decide whether an expression is odd or even, and positive or negative, from the rules for each operation.

The idea

What a remainder really says

Dividing a positive integer nn by a positive integer dd gives a quotient qq and a remainder rr with

n=dq+r,0≤r<dn = dq + r, \qquad 0 \le r < d

The condition on rr matters: a remainder is never negative and always smaller than the divisor. Dividing by 7 can only leave 0, 1, 2, 3, 4, 5 or 6, and a remainder of 0 means dd divides nn.

The equation is the useful form. "When nn is divided by 7 the remainder is 5" becomes n=7q+5n = 7q + 5, and you can list the numbers that fit: 5, 12, 19, 26, 33, … Starting from the remainder itself, add the divisor again and again. Notice that the smallest such number is 5, with quotient 0; people often forget it.

Remainders of sums, products and powers

Remainders can be combined without finding nn. If aa leaves remainder rr and bb leaves remainder ss when divided by dd, then:

  • a+ba + b leaves the same remainder as r+sr + s;
  • abab leaves the same remainder as rsrs;
  • aka^k leaves the same remainder as rkr^k.

Each time, reduce at the end: if r+sr + s or rsrs is dd or more, divide it by dd again. Why does this work? Write a=dq+ra = dq + r. Every term in a2=d2q2+2dqr+r2a^2 = d^2q^2 + 2dqr + r^2 except the last is a multiple of dd, so only r2r^2 affects the remainder.

The units digit of a number is its remainder on division by 10, so the same rule finds units digits of big products and powers. Powers of 3 end in 3, 9, 7, 1 and then repeat; to find the units digit of 3503^{50}, divide 50 by the cycle length 4 (remainder 2), and take the second entry: 9.

Two conditions at once

When a number must leave one remainder for one divisor and another for a second divisor, list the candidates for the larger divisor and test each against the other condition. Once you find the first number that fits, the rest come every lcm⁡\operatorname{lcm} of the two divisors.

Odd and even

An integer is even if it is divisible by 2 and odd otherwise. 0 is even, and negative integers are odd or even too: −6-6 is even, −3-3 is odd.

Operation Rule
sum or difference even if the two have the same parity; odd if they differ
product even if at least one factor is even; odd only if all are odd
power nkn^k (k≥1k \ge 1) same parity as nn

Two consequences come up all the time. A product of consecutive integers, such as n(n+1)n(n+1), is always even, because one of any two consecutive integers is even. And if a+ba + b is odd, one of aa and bb is odd and the other even, so abab is even.

Division has no parity rule: 122=6\frac{12}{2} = 6 is even while 62=3\frac{6}{2} = 3 is odd. Work with sums and products instead.

Positive and negative

The sign of a product depends only on how many negative factors it has: an even number of negatives gives a positive product, an odd number a negative one. Any factor of 0 makes the product 0, which is neither positive nor negative.

So an even power is never negative (x2≥0x^2 \ge 0), and an odd power keeps the sign of its base. Given xy>0xy > 0, you know xx and yy have the same sign but not which; given xy<0xy < 0, they have opposite signs.

Pick numbers wisely

In a comparison question, variables can be negative, zero or fractions unless the stem says otherwise. Read every restriction ("integer", "positive", "odd"), then test values from each kind the stem allows. A claim that works for 2 and 3 may fail for −1-1 or 0.

Worked examples

Example 1: Remainder of 3n

When the positive integer nn is divided by 7, the remainder is 5. What is the remainder when 3n3n is divided by 7?

  1. Write the condition as an equation: n=7q+5n = 7q + 5.

  2. Multiply: 3n=21q+153n = 21q + 15. The term 21q21q is a multiple of 7, so only 15 matters.

  3. Reduce: 15=2×7+115 = 2 \times 7 + 1, so the remainder is 1.

  4. Check with real numbers: n=12n = 12 gives 3n=36=5×7+13n = 36 = 5 \times 7 + 1; n=5n = 5 gives 15=2×7+115 = 2 \times 7 + 1.

Answer

The remainder is 1. Answering 15 forgets that a remainder must be less than the divisor; answering 5 assumes the remainder is unchanged by multiplying.

Example 2: Two remainders at once

A positive integer xx leaves a remainder of 2 when divided by 5 and a remainder of 3 when divided by 4. How many such integers are less than 100?

  1. List numbers that leave remainder 2 on division by 5: 2, 7, 12, 17, 22, 27, …

  2. Test each against division by 4: 2 leaves 2, 7 leaves 3. So 7 is the smallest that fits.

  3. After 7, the solutions repeat every lcm⁡(5,4)=20\operatorname{lcm}(5, 4) = 20: 7, 27, 47, 67, 87, and the next, 107, is too big.

  4. Check one: 87=17×5+287 = 17 \times 5 + 2 and 87=21×4+387 = 21 \times 4 + 3.

Answer

There are 5 such integers: 7, 27, 47, 67 and 87. Stepping by 5 or by 4 instead of by 20 produces numbers that meet only one condition.

Example 3: Odd sum, what follows?

aa and bb are integers and a+ba + b is odd. Is each of abab, a−ba - b and a2+b2a^2 + b^2 odd or even?

  1. An odd sum means aa and bb have different parity: one is odd, the other even.

  2. abab has an even factor, so it is even.

  3. a−ba - b combines an odd and an even number, so it is odd, just like the sum.

  4. a2a^2 and b2b^2 keep the parities of aa and bb, so one is odd and one even, and their sum is odd.

  5. Check with a=2a = 2, b=3b = 3: ab=6ab = 6, a−b=−1a - b = -1, a2+b2=13a^2 + b^2 = 13.

Answer

abab is even; a−ba - b and a2+b2a^2 + b^2 are odd. The negative value a−b=−1a - b = -1 is still odd: parity does not depend on sign.

Example 4: Chaining sign facts

If xy<0xy < 0 and yz>0yz > 0, what is the sign of xzxz?

  1. xy<0xy < 0: xx and yy have opposite signs.

  2. yz>0yz > 0: yy and zz have the same sign.

  3. So zz has the sign of yy, which is opposite to xx, and xz<0xz < 0.

  4. A second route: (xy)(yz)=xy2z<0(xy)(yz) = xy^2z < 0, and y2>0y^2 > 0, so xz<0xz < 0. Numbers agree: x=1x = 1, y=−1y = -1, z=−2z = -2 gives xz=−2xz = -2.

Answer

xzxz is negative. The individual signs are not fixed (both x=−1x = -1, y=1y = 1, z=2z = 2 and the example above work), but the sign of xzxz is.

Common traps

  • A remainder that is too big

    After combining remainders, reduce again. If aa and bb each leave remainder 6 on division by 7, the remainder of a+ba + b is not 12 but 5. Any answer at least as large as the divisor cannot be a remainder.

  • Forgetting the smallest candidate

    "Leaves remainder 3 when divided by 8" includes 3 itself (quotient 0). Lists that start at 8+3=118 + 3 = 11 miss it, and "how many less than 50" counts then come out one short.

  • Treating 0 as odd or as positive

    0 is even, and it is neither positive nor negative. If a stem says "nn is a non-negative even integer", 0 is allowed and is often the value that breaks a claim.

  • Testing only positive integers

    Unless the stem says "positive integer", try a negative and, where allowed, 0 or a fraction. "x3>xx^3 > x" holds for x=2x = 2 but fails for x=−2x = -2 and for x=12x = \frac{1}{2}.

Check yourself

Answer each question before you open its answer.

Question 1: Remainder of a square

Integer properties

When the positive integer nn is divided by 9, the remainder is 7. What is the remainder when n2n^2 is divided by 9?

  1. A.0
  2. B.2
  3. C.4
  4. D.5
  5. E.7
Show the answer

Answer: C. 4

Working

Write n=9q+7n = 9q + 7. Only the square of the remainder matters: 72=49=5×9+47^2 = 49 = 5 \times 9 + 4, so the remainder is 4. Check with n=16n = 16: 256=28×9+4256 = 28 \times 9 + 4. A second route: nn is 2 less than a multiple of 9, and (−2)2=4(-2)^2 = 4.

Why the other options are wrong

  • A. This assumes n2n^2 is a multiple of 9 because 9 is a perfect square; nothing about nn makes that true.
  • B. 2 is how far nn sits below the next multiple of 9. Squaring that gap leads to the answer, but 2 is not itself the remainder of n2n^2.
  • D. This is the remainder of 2n2n, from 7+7=147 + 7 = 14, not of n2n^2, from 7×7=497 \times 7 = 49.
  • E. This assumes the remainder stays the same after squaring; the remainder of n2n^2 comes from 727^2.

What carries over

Combine the remainders, not the numbers, then reduce the result below the divisor.

Question 2: The sign of z

Quantitative Comparison

xyz<0xyz < 0 and xy>0xy > 0.

Quantity A Quantity B
zz 0
  1. A.Quantity A is greater.
  2. B.Quantity B is greater.
  3. C.The two quantities are equal.
  4. D.The relationship cannot be determined from the information given.
Show the answer

Answer: B. Quantity B is greater.

Working

xyz=(xy)⋅zxyz = (xy) \cdot z. Since xyxy is positive and xyzxyz is negative, zz must be negative, so z<0z < 0. Check: x=y=1x = y = 1, z=−1z = -1 and x=y=−2x = y = -2, z=−3z = -3 both satisfy the conditions, and in both z<0z < 0.

Why the other options are wrong

  • A. This reads xy>0xy > 0 as saying all three numbers are positive; then xyzxyz would be positive too, which contradicts xyz<0xyz < 0.
  • C. If zz were 0, the product xyzxyz would be 0, not negative.
  • D. The signs of xx and yy are unknown, but only the sign of their product matters, and that product fixes the sign of zz.

What carries over

Group the factors whose sign you know, and the sign of what is left follows.

Question 3: Which must be odd?

Integer properties

If nn is an integer, which of the following must be odd?

  1. A.n+3n + 3
  2. B.3n3n
  3. C.n2+2nn^2 + 2n
  4. D.n2+n+1n^2 + n + 1
  5. E.n2+nn^2 + n
Show the answer

Answer: D. n2+n+1n^2 + n + 1

Working

n2+n=n(n+1)n^2 + n = n(n+1) is the product of two consecutive integers, one of which is even, so it is always even. Adding 1 makes n2+n+1n^2 + n + 1 always odd. Check: n=2n = 2 gives 7, n=3n = 3 gives 13, n=0n = 0 gives 1, n=−1n = -1 gives 1. Every other choice is even for n=1n = 1 or n=2n = 2.

Why the other options are wrong

  • A. When nn is odd, n+3n + 3 is even; for example n=1n = 1 gives 4.
  • B. When nn is even, 3n3n is even; for example n=2n = 2 gives 6. Multiplying by an odd number keeps the parity of nn.
  • C. When nn is even, both terms are even; for example n=2n = 2 gives 8.
  • E. n2+n=n(n+1)n^2 + n = n(n+1) is a product of consecutive integers, so it is always even, never odd.

What carries over

Factor an expression into consecutive integers to show it is always even.

Key points

  • "Remainder rr on division by dd" means n=dq+rn = dq + r with 0≤r<d0 \le r < d.

  • Remainders of sums, products and powers come from the remainders of the parts; reduce at the end.

  • A product is even if any factor is even; a product of consecutive integers is always even.

  • 0 is even and neither positive nor negative.

  • The sign of a product depends on how many negative factors it has.

All questions here are original and written for UniExamer; none comes from the test maker.

Written by the UniExamer team with AI assistance. Every worked example and check question was re-solved by an independent checker before publication. No subject expert has reviewed this lesson yet. If you find a mistake, write to support@uniexamer.com.

Esercitati su questo argomento

Domande nuove su questa abilità, con spiegazioni svolte. L’esercitazione richiede un Single Exam Pass o Plus.