8.02a–8.02d - Bases, divisibility and the division algorithm

8.02a–8.02d - Bases, divisibility and the division algorithm

Read and calculate with numbers in different bases, use familiar divisibility tests, and build a test for an unfamiliar prime. You will also express division precisely using a quotient and a remainder, so that a calculation becomes a statement you can prove.

Place value in any base

Why is the palindrome 12211221 divisible by 1111, and does the same pattern survive if you change the number base? The digits look innocent; their place values contain the explanation.

In base ten, 234=2×100+3×10+4234 = 2\times100+3\times10+4. In base five, the same string of digits means 2345=2×25+3×5+4=6910234_5=2\times25+3\times5+4=69_{10}. The subscript tells you how large a place becomes when you move one step left.

You already know

An integer power gives repeated multiplication, and n0=1n^0=1. Expanding and factorising polynomials lets you work with a base that is not yet known.

Each digit must fit inside a single place: a digit equal to the base must be carried into the next place.

Base notation

In an integer base n≥2n\ge2, the digits are 0,1,…,n−10,1,\ldots,n-1. A non-zero number has a non-zero first digit. For example,

2013n=2n3+n+3(n>3)2013_n=2n^3+n+3 \qquad (n>3)

The letters A,B,C,D,E,F\mathrm A,\mathrm B,\mathrm C,\mathrm D,\mathrm E,\mathrm F represent 10,11,12,13,14,1510,11,12,13,14,15, respectively, when the base is large enough. Thus A11=1010\mathrm A_{11}=10_{10}, but B11\mathrm B_{11} is not a valid digit.

The value of a digit string is its place-value expansion. To go the other way, divide repeatedly by the new base: the first remainder is the units digit, the next is the next digit, and so on. This place-value rule and conversion method are not in the formula booklet: learn them.

[DIAGRAM: asset_name: Place values in base five and base twelve; asset_slug: h245_8_02_place_values; caption: Changing the base changes the place values, not the meaning of a digit; description: Two rows of three pale boxes show 234 in base five above place values 25, 5, 1 and 2A4 in base twelve above place values 144, 12, 1. Arrows connect each digit to its contribution. The totals 69 and 412 are shown in base ten.]
Changing the base changes the place values, not the meaning of a digit

The same conversion can be checked in reverse, which is useful when several remainders look alike.

Worked example 1: converting both ways

Question. Express 2345234_5 in base ten and 971097_{10} in base five.

Plan. Expand the first number in powers of five; divide the second repeatedly by five and read its remainders upwards.

2345=2×52+3×5+4place values=50+15+4=6910add contributions97=5×19+2units digit 219=5×3+4next digit 43=5×0+3first digit 3\begin{aligned} 234_5&=2\times5^2+3\times5+4 &&\text{place values}\\ &=50+15+4=69_{10} &&\text{add contributions}\\ 97&=5\times19+2 &&\text{units digit }2\\ 19&=5\times3+4 &&\text{next digit }4\\ 3&=5\times0+3 &&\text{first digit }3 \end{aligned}

Why this step? Dividing by five removes the units place and shifts every other digit one place right, so the remainders emerge from right to left.

Answer. 2345=6910234_5=69_{10} and 9710=342597_{10}=342_5.

Check. 3425=3×25+4×5+2=97342_5=3\times25+4\times5+2=97, as required.

The next example changes the base to twelve. The method is identical; a remainder of ten now needs a letter.

Worked example 2: a letter is a digit

Question. Express 2A4122\mathrm A4_{12} in base ten and 39110391_{10} in base twelve.

Plan. Use A=10\mathrm A=10, then apply the same place-value and repeated-division methods with twelve.

2A412=2×122+10×12+4A=10=288+120+4=41210add contributions391=12×32+7units digit 732=12×2+8next digit 82=12×0+2first digit 2\begin{aligned} 2\mathrm A4_{12}&=2\times12^2+10\times12+4 &&\mathrm A=10\\ &=288+120+4=412_{10} &&\text{add contributions}\\ 391&=12\times32+7 &&\text{units digit }7\\ 32&=12\times2+8 &&\text{next digit }8\\ 2&=12\times0+2 &&\text{first digit }2 \end{aligned}

Why this step? A letter in a numeral records one digit, not an algebraic variable or two separate digits.

Answer. 2A412=412102\mathrm A4_{12}=412_{10} and 39110=28712391_{10}=287_{12}.

Check. 28712=2×144+8×12+7=391287_{12}=2\times144+8\times12+7=391. All three digits are less than twelve.

Read the subscript before attempting any arithmetic.

Watch out

Wrong: 125=121012_5=12_{10}. Right: 125=1×5+2=71012_5=1\times5+2=7_{10}. Also, 57757_7 is invalid: the digit 77 cannot occur in base seven.

Try the two directions with a fresh pair of numbers.

Algebra with a base

When the base is unknown, a numeral is a polynomial waiting to be expanded.

For example, 23n=2n+323_n=2n+3, so 23n=171023_n=17_{10} gives n=7n=7. You must also check n>3n>3, because the largest digit is three. Solving the equation does not by itself make a base valid.

The same expansion reveals patterns that hold for every permitted base. If a,ba,b are digits and a≠0a\ne0, the four-digit palindrome abbanabba_n has value

an3+bn2+bn+a=a(n3+1)+bn(n+1)=(n+1)(a(n2−n+1)+bn)\begin{aligned} an^3+bn^2+bn+a &=a(n^3+1)+bn(n+1)\\ &=(n+1)\bigl(a(n^2-n+1)+bn\bigr) \end{aligned}

The bracket is an integer, so the numeral is divisible by n+1n+1. This identity is not in the formula booklet: learn how to obtain it by expansion and factorisation. In particular, 122110=11(91+20)=11×1111221_{10}=11(91+20)=11\times111: the opening pattern is already taking shape.

An equation between two bases needs a separate expansion on each side.

Worked example 3: finding an unknown base

Question. Given that 132n=7210132_n=72_{10}, determine nn.

Plan. Expand in powers of nn, solve the resulting quadratic, and keep only an integer base that permits every digit.

n2+3n+2=72expand 132nn2+3n−70=0collect terms(n+10)(n−7)=0factorisen=7n is positive and n>3\begin{aligned} n^2+3n+2&=72 &&\text{expand }132_n\\ n^2+3n-70&=0 &&\text{collect terms}\\ (n+10)(n-7)&=0 &&\text{factorise}\\ n&=7 &&n\text{ is positive and }n>3 \end{aligned}

Why this step? The negative algebraic root is a root of the polynomial, but it cannot be a base in this setting.

Answer. n=7n=7.

Check. 1327=49+21+2=7210132_7=49+21+2=72_{10}.

The second example changes one feature: the value on the right is itself written in a base involving nn. Expand that side too.

Worked example 4: two related bases

Question. Given that 132n=112n+1132_n=112_{n+1}, determine nn.

Plan. Expand each numeral using its own base, then check the resulting base restrictions.

n2+3n+2=(n+1)2+(n+1)+2expand both sidesn2+3n+2=n2+3n+4simplify\begin{aligned} n^2+3n+2&=(n+1)^2+(n+1)+2 &&\text{expand both sides}\\ n^2+3n+2&=n^2+3n+4 &&\text{simplify} \end{aligned}

The equality would require 2=42=4, which is impossible.

Why this step? The same digit string can have different values in different bases; the base must be substituted into every power, not added to the final value.

Answer. There is no such base nn.

Check. At n=4n=4, the two values are 3030 and 3232; their difference remains two for every nn.

An impossible equation is a complete answer when the algebra proves that no allowed base works.

Watch out

Wrong: 132n+1=132n+1132_{n+1}=132_n+1. Each place value changes. Right: 132n+1=(n+1)2+3(n+1)+2132_{n+1}=(n+1)^2+3(n+1)+2.

In a proof about a digit pattern, state that the factor left after factorising is an integer: that is what turns algebra into divisibility.

Standard divisibility tests

A divisibility test keeps just enough information to decide whether a number is an exact multiple.

Divisibility

For integers a≠0a\ne0 and bb, a∣ba\mid b means that b=akb=ak for some integer kk. For example, 7∣427\mid42, 7∣(−14)7\mid(-14) and 7∣07\mid0, but 7∤207\nmid20.

These standard tests apply to base-ten numerals. You may use them without proof; the tests are not in the formula booklet: learn them.

DivisorTest
22The last digit is even.
33The sum of the digits is divisible by 33.
44The number formed by the last two digits is divisible by 44.
55The last digit is 00 or 55.
88The number formed by the last three digits is divisible by 88.
99The sum of the digits is divisible by 99.
1111The alternating sum of the digits is divisible by 1111, including zero.

For 1111, either sign convention works: 462462 has alternating sum 4−6+2=04-6+2=0, while 27282728 has 2−7+2−8=−112-7+2-8=-11. Both are divisible by eleven. For a short numeral, the “last three digits” test simply uses the whole numeral.

To test a composite divisor, combine tests for coprime factors, or divide by one factor and test the quotient for the next. For example, divisibility by 72=8×972=8\times9 needs both tests, since 88 and 99 have no common factor greater than one. Checking divisibility by 44 and 66 only establishes divisibility by 1212, not necessarily by 2424.

Here are two tests with the number held fixed, so you can see exactly what changes with the divisor.

Worked example 5: combining coprime tests

Question. Use standard tests to determine whether 58325832 is divisible by 7272.

Plan. Test 88 and 99, whose product is 7272 and which are coprime.

832=8×104last three digits5+8+3+2=18=9×2digit sum\begin{aligned} 832&=8\times104 &&\text{last three digits}\\ 5+8+3+2&=18=9\times2 &&\text{digit sum} \end{aligned}

Why this step? The two tests account for the complete factors 88 and 99; neither repeats a prime factor from the other.

Answer. Both tests pass, so 72∣583272\mid5832.

Check. 5832=72×815832=72\times81.

The next example changes only the divisor. It now contains one more factor of two, so the previous two tests do not finish the job.

Worked example 6: repeated tests on a quotient

Question. Use standard tests to determine whether 58325832 is divisible by 144144.

Plan. Since 144=8×18144=8\times18, divide by eight and test the quotient for divisibility by eighteen.

5832=8×729first exact division7+2+9=189∣729729 is odd2∤729\begin{aligned} 5832&=8\times729 &&\text{first exact division}\\ 7+2+9&=18 &&9\mid729\\ 729&\text{ is odd} &&2\nmid729 \end{aligned}

Why this step? Testing the quotient makes repeated prime factors count again; testing the original number for eight and eighteen would only establish divisibility by their least common multiple, seventy-two.

Answer. 18∤72918\nmid729, so 144∤5832144\nmid5832.

Check. 5832=144×40+725832=144\times40+72, so the division is not exact.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account