Patterns that are not accidents

Try this. Take four consecutive numbers and put plus and minus signs between them in every possible way. Every answer you get is even. Or add two even numbers that are not multiples of 44, and the sum always is one. These are not coincidences, and in this lesson you will meet the tool that proves them. Write the numbers in algebra, as 2n2n, 4p+24p + 2 or 5k+35k + 3, and the pattern simply falls out. We finish with the "always, sometimes, never" way of testing claims about factors and multiples.

Sums of consecutive numbers

A warm-up first. 9=4+5=2+3+49 = 4 + 5 = 2 + 3 + 4, and 14=2+3+4+514 = 2 + 3 + 4 + 5, but 1616 cannot be written as a sum of two or more consecutive natural numbers at all. Every odd number is a sum of two consecutive numbers, since n+(n+1)=2n+1n + (n + 1) = 2n + 1. Which even numbers can be written this way, and which numbers can be written in several ways? That is well worth exploring on your own, and the answer depends on the odd factors of the number.

Signs between four consecutive numbers

Take 5,6,7,85, 6, 7, 8 and put a ++ or a −- in each of the three gaps. That gives 2×2×2=82 \times 2 \times 2 = 8 expressions.

5+6+7+8=26,5+6+7−8=10,5−6+7−8=−2,5−6−7−8=−16,…5 + 6 + 7 + 8 = 26, \quad 5 + 6 + 7 - 8 = 10, \quad 5 - 6 + 7 - 8 = -2, \quad 5 - 6 - 7 - 8 = -16, \ldots

Every result is even, and the same thing happens for any four consecutive numbers. In fact something stronger is true. For any four numbers at all, the eight results all have the same parity (all odd or all even).

Why, using algebra. Take a+b−c−da + b - c - d and flip the sign of bb. The new value is a−b−c−da - b - c - d, and the old and new values differ by 2b2b, which is even. Two numbers that differ by an even number have the same parity. You can reach any of the eight expressions from any other by flipping signs one at a time, so all eight share the same parity.

Why, using parity rules. odd±odd\text{odd} \pm \text{odd} is even, even±even\text{even} \pm \text{even} is even, and odd±even\text{odd} \pm \text{even} is odd. In other words, a+ba + b and a−ba - b always have the same parity. Apply this one gap at a time.

Now, among four consecutive numbers, two are odd and two are even. So a+b+c+da + b + c + d is even, and therefore all eight expressions are even too.

Which expressions are always even?

You can often tell without calculating anything. 58+2458 + 24 is even (even ++ even). 713−289713 - 289 is even (odd −- odd). 6×431×56 \times 431 \times 5 is even, since it has a factor 22. 407×355407 \times 355 is odd (odd ×\times odd). 2152^{15} is even, and 3203^{20} is odd.

With algebraic expressions, the test is this: an expression is always even if you can write it as 2×(something whole)2 \times (\text{something whole}).

  • 6m+4n=2(3m+2n)6m + 4n = 2(3m + 2n): always even.
  • 4k−2j=2(2k−j)4k - 2j = 2(2k - j): always even.
  • 5g+7h5g + 7h: sometimes. It is even if gg and hh are both even or both odd, and odd otherwise.
  • x2+3x^2 + 3: odd when xx is even (x=4x = 4 gives 1919), and even when xx is odd (x=3x = 3 gives 1212).
  • n(n+1)n(n + 1): always even, because one of any two consecutive numbers is even.

Pairs that make multiples of four

Even numbers come in two kinds. There are the multiples of 44, written 4p4p, and the rest, written 4q+24q + 2, which are two more than a multiple of 44.

Sum Algebra Always a multiple of 44?
4p+4q4p + 4q 4(p+q)4(p + q) yes
(4p+2)+(4q+2)(4p + 2) + (4q + 2) 4(p+q+1)4(p + q + 1) yes, the two remainders of 22 make a 44
4p+(4q+2)4p + (4q + 2) 4(p+q)+24(p + q) + 2 never

12+28=4012 + 28 = 40 ✓; 6+14=206 + 14 = 20 ✓; 8+10=188 + 10 = 18 ✗. Do you see the resemblance to odd and even? Two "remainder 22" numbers add up to a "remainder 00" number, just as two odd numbers add up to an even one.

Dots arranged in rows of four: 6 is one row plus 2 extra, 14 is three rows plus 2 extra, and together the two leftover pairs complete a fifth row, giving 20 in five rows of four.
Two leftover 2s make a full row of 4

Always, sometimes, never

For each claim below, decide which it is. If it is always true, prove it. If it is sometimes true, find one example and one counterexample. If it is never true, show why it is impossible.

If 88 divides two numbers, it divides their sum. 8a+8b=8(a+b)8a + 8b = 8(a + b), so this is always true, and the same goes for the difference. In general, if kk divides MM and NN, it divides M±NM \pm N.

If 88 divides a number, it divides any two numbers adding to it. 8m=8a+8b8m = 8a + 8b works, but 48=30+1848 = 30 + 18 does not. So: sometimes.

If 77 divides a number, it divides every multiple of that number. 7j×m=7(jm)7j \times m = 7(jm), so always.

If 1212 divides a number, so does every factor of 1212. 12m=3×4m=6×2m12m = 3 \times 4m = 6 \times 2m, so always.

If 77 divides a number, so does every multiple of 77. 4242 is divisible by 77 and by 1414, but not by 2828. So: sometimes.

If both 99 and 44 divide a number, so does 3636. This is always true, because a multiple of both is a multiple of their LCM, which is 3636. Be careful, though. "66 and 44 divide it, so 2424 does" is only sometimes true, and 1212 is a counterexample. The reason is that LCM(6,4)=12\text{LCM}(6, 4) = 12, not 2424.

An odd plus an even is a multiple of 66. Odd ++ even is odd, but every multiple of 66 is even. So: never. In algebra, 2n+(2m+1)=6j2n + (2m + 1) = 6j would force 2(n+m)=6j−12(n + m) = 6j - 1, an even number equal to an odd one.

Remainders in algebra

The numbers that leave remainder 33 when divided by 55 are 3,8,13,18,…3, 8, 13, 18, \ldots, and they all have the form 5k+35k + 3. You could equally write them as 5k−25k - 2 (k≥1k \geq 1), because two less than a multiple of 55 is three more than the multiple before it.

Number line 0 to 20 with multiples of 5 marked in grey and the numbers 3, 8, 13, 18 marked in red, joined by jumps of +5, each one 3 more than a multiple of 5.
Numbers of the form 5k + 3 sit 3 past each multiple of 5

Example 1. Numbers that leave remainder 11 when divided by 44 and by 66 are one more than a common multiple of 44 and 66. That is, 12n+112n + 1: 1,13,25,37,…1, 13, 25, 37, \ldots

Example 2. A number leaves remainder 22 when divided by 33, remainder 33 when divided by 44, and remainder 44 when divided by 55. Here is the trick: each remainder is one short of the divisor. So the number is one short of a common multiple of 3,4,53, 4, 5. The smallest is 60−1=5960 - 1 = 59.

Example 3. 853853 leaves remainder 66 when divided by 77, and 325325 leaves 33. Then 853+325=(7p+6)+(7q+3)=7(p+q+1)+2853 + 325 = (7p + 6) + (7q + 3) = 7(p + q + 1) + 2, so the remainder is 22. And 853−325=7(p−q)+3853 - 325 = 7(p - q) + 3, so the remainder is 33.

Practice

  1. Four consecutive numbers add to 5454. Find them.
  2. mm is the smallest of six consecutive numbers. Write the others in terms of mm, and their sum.
  3. Without computing, say whether each is even or odd: 471+293471 + 293; 850−377850 - 377; 7×19×47 \times 19 \times 4; 9129^{12}; 321×555321 \times 555.
  4. Which expressions are always even? Give an example and, where relevant, a counterexample: (a) 8a+6b8a + 6b; (b) 3p+3q3p + 3q; (c) 2x2+12x^2 + 1; (d) n2+nn^2 + n; (e) 10k−510k - 5.
  5. Classify always/sometimes/never with justification: (a) the sum of two odd numbers is a multiple of 44; (b) if 1515 does not divide a number, 55 does not divide it; (c) the sum of a multiple of 88 and a multiple of 1212 is a multiple of 44; (d) the sum of a multiple of 88 and a multiple of 1212 is a multiple of 2424; (e) a number divisible by 66 and 1010 is divisible by 3030.
  6. Write all numbers under 6060 that leave remainder 33 on division by 55 and remainder 33 on division by 77, and an expression for all such numbers.
  7. Some marbles: grouped in threes, two left; in fours, three left; in fives, four left; in sevens, none left; fewer than 250250. How many?
  8. Three numbers each leave remainder 44 on division by 66. Show their sum is a multiple of 66.
  9. 10041004 leaves remainder 44 on division by 88 and 623623 leaves 77. Find the remainders of 1004+6231004 + 623 and 1004−6231004 - 623 on division by 88 without dividing.
  10. Find the smallest number that leaves remainder 11 on division by 2,3,4,52, 3, 4, 5 and 66 but is divisible by 77.

Answers

Show answers
  1. n+(n+1)+(n+2)+(n+3)=4n+6=54n + (n+1) + (n+2) + (n+3) = 4n + 6 = 54, n=12n = 12: 12,13,14,1512, 13, 14, 15.
  2. m+1,m+2,m+3,m+4,m+5m + 1, m + 2, m + 3, m + 4, m + 5; sum 6m+156m + 15.
  3. Even; odd; even; odd; odd.
  4. (a) Always, 2(4a+3b)2(4a + 3b). (b) Sometimes: p=q=1p = q = 1 gives 66; p=1,q=2p = 1, q = 2 gives 99. (c) Never even; it is always odd. (d) Always, n(n+1)n(n + 1). (e) Never even, since 5(2k−1)5(2k - 1) is odd.
  5. (a) Sometimes: 3+5=83 + 5 = 8 ✓, 3+7=103 + 7 = 10 ✗. (b) Sometimes: 2020 is not divisible by 1515 but is by 55; 2222 by neither. (c) Always: 8a+12b=4(2a+3b)8a + 12b = 4(2a + 3b). (d) Sometimes: 24+24=4824 + 24 = 48 ✓, 8+12=208 + 12 = 20 ✗. (e) Always: LCM is 3030.
  6. Three more than a multiple of 3535: 3,383, 38; in general 35n+335n + 3.
  7. The remainders are one short of 3,4,53, 4, 5, so the number is one less than a multiple of 6060: 59,119,179,23959, 119, 179, 239. Divisible by 77: 119=7×17119 = 7 \times 17.
  8. (6a+4)+(6b+4)+(6c+4)=6(a+b+c+2)(6a + 4) + (6b + 4) + (6c + 4) = 6(a + b + c + 2).
  9. Sum: 8(p+q+1)+38(p + q + 1) + 3: remainder 33. Difference: 8(p−q)−3=8(p−q−1)+58(p - q) - 3 = 8(p - q - 1) + 5: remainder 55.
  10. One more than a multiple of 6060: 61,121,181,241,30161, 121, 181, 241, 301; 301=7×43301 = 7 \times 43. Answer 301301.