
In arithmetic, long division is a standard division algorithm suitable for dividing multi-digit Hindu-Arabic numerals (positional notation) that is simple enough to perform by hand. It breaks down a division problem into a series of easier steps.
As in all division problems, one number, called the dividend, is divided by another, called the divisor, producing a result called the quotient. It enables computations involving arbitrarily large numbers to be performed by following a series of simple steps. The abbreviated form of long division is called short division, which is almost always used instead of long division when the divisor has only one digit.
History
Related algorithms have existed since the 12th century.Al-Samawal al-Maghribi (1125–1174) performed calculations with decimal numbers that essentially require long division, leading to infinite decimal results, but without formalizing the algorithm. Caldrini (1491) is the earliest printed example of long division, known as the Danda method in medieval Italy, and it became more practical with the introduction of decimal notation for fractions by Pitiscus (1608). The specific algorithm in modern use was introduced by Henry Briggs c. 1600.
Education
The examples and perspective in this article may not represent a worldwide view of the subject.(May 2024) |
Inexpensive calculators and computers have become the most common way to solve division problems, eliminating a traditional mathematical exercise and decreasing the educational opportunity to show how to do so by paper and pencil techniques. (Internally, those devices use one of a variety of division algorithms, the faster of which rely on approximations and multiplications to achieve the tasks.) In North America, long division has been especially targeted for de-emphasis or even elimination from the school curriculum by reform mathematics, though it has been traditionally introduced in the 4th, 5th or even 6th grades.
Method
In English-speaking countries, long division does not use the division slash ⟨∕⟩ or division sign ⟨÷⟩ symbols but instead constructs a tableau. The divisor is separated from the dividend by a right parenthesis ⟨)⟩ or vertical bar ⟨|⟩; the dividend is separated from the quotient by a vinculum (i.e., an overbar). The combination of these two symbols is sometimes known as a long division symbol or division bracket. It developed in the 18th century from an earlier single-line notation separating the dividend from the quotient by a left parenthesis.
The process is begun by dividing the left-most digit of the dividend by the divisor. The quotient (rounded down to an integer) becomes the first digit of the result, and the remainder is calculated (this step is notated as a subtraction). This remainder carries forward when the process is repeated on the following digit of the dividend (notated as 'bringing down' the next digit to the remainder). When all digits have been processed and no remainder is left, the process is complete.
An example is shown below, representing the division of 500 by 4 (with a result of 125).
125 (Explanations) 4)500 4 ( 4 × 1 = 4) 10 ( 5 - 4 = 1) 8 ( 4 × 2 = 8) 20 (10 - 8 = 2) 20 ( 4 × 5 = 20) 0 (20 - 20 = 0)
A more detailed breakdown of the steps goes as follows:
- Find the shortest sequence of digits starting from the left end of the dividend, 500, that the divisor 4 goes into at least once. In this case, this is simply the first digit, 5. The largest number that the divisor 4 can be multiplied by without exceeding 5 is 1, so the digit 1 is put above the 5 to start constructing the quotient.
- Next, the 1 is multiplied by the divisor 4, to obtain the largest whole number that is a multiple of the divisor 4 without exceeding the 5 (4 in this case). This 4 is then placed under and subtracted from the 5 to get the remainder, 1, which is placed under the 4 under the 5.
- Afterwards, the first as-yet unused digit in the dividend, in this case the first digit 0 after the 5, is copied directly underneath itself and next to the remainder 1, to form the number 10.
- At this point the process is repeated enough times to reach a stopping point: The largest number by which the divisor 4 can be multiplied without exceeding 10 is 2, so 2 is written above as the second leftmost quotient digit. This 2 is then multiplied by the divisor 4 to get 8, which is the largest multiple of 4 that does not exceed 10; so 8 is written below 10, and the subtraction 10 minus 8 is performed to get the remainder 2, which is placed below the 8.
- The next digit of the dividend (the last 0 in 500) is copied directly below itself and next to the remainder 2 to form 20. Then the largest number by which the divisor 4 can be multiplied without exceeding 20, which is 5, is placed above as the third leftmost quotient digit. This 5 is multiplied by the divisor 4 to get 20, which is written below and subtracted from the existing 20 to yield the remainder 0, which is then written below the second 20.
- At this point, since there are no more digits to bring down from the dividend and the last subtraction result was 0, we can be assured that the process finished.
If the last remainder when we ran out of dividend digits had been something other than 0, there would have been two possible courses of action:
- We could just stop there and say that the dividend divided by the divisor is the quotient written at the top with the remainder written at the bottom, and write the answer as the quotient followed by a fraction that is the remainder divided by the divisor.
- We could extend the dividend by writing it as, say, 500.000... and continue the process (using a decimal point in the quotient directly above the decimal point in the dividend), in order to get a decimal answer, as in the following example.
31.75 4)127.00 12 (12 ÷ 4 = 3) 07 (0 remainder, bring down next figure) 4 (7 ÷ 4 = 1 r 3) 3.0 (bring down 0 and the decimal point) 2.8 (7 × 4 = 28, 30 ÷ 4 = 7 r 2) 20 (an additional zero is brought down) 20 (5 × 4 = 20) 0
In this example, the decimal part of the result is calculated by continuing the process beyond the units digit, "bringing down" zeros as being the decimal part of the dividend.
This example also illustrates that, at the beginning of the process, a step that produces a zero can be omitted. Since the first digit 1 is less than the divisor 4, the first step is instead performed on the first two digits 12. Similarly, if the divisor were 13, one would perform the first step on 127 rather than 12 or 1.
Basic procedure for long division of n ÷ m
- Find the location of all decimal points in the dividend n and divisor m.
- If necessary, simplify the long division problem by moving the decimals of the divisor and dividend by the same number of decimal places, to the right (or to the left), so that the decimal of the divisor is to the right of the last digit.
- When doing long division, keep the numbers lined up straight from top to bottom under the tableau.
- After each step, be sure the remainder for that step is less than the divisor. If it is not, there are three possible problems: the multiplication is wrong, the subtraction is wrong, or a greater quotient is needed.
- In the end, the remainder, r, is added to the growing quotient as a fraction, r⁄m.
Invariant property and correctness
The basic presentation of the steps of the process (above) focus on the what steps are to be performed, rather than the properties of those steps that ensure the result will be correct (specifically, that q × m + r = n, where q is the final quotient and r the final remainder). A slight variation of presentation requires more writing, and requires that we change, rather than just update, digits of the quotient, but can shed more light on why these steps actually produce the right answer by allowing evaluation of q × m + r at intermediate points in the process. This illustrates the key property used in the derivation of the algorithm (below).
Specifically, we amend the above basic procedure so that we fill the space after the digits of the quotient under construction with 0's, to at least the 1's place, and include those 0's in the numbers we write below the division bracket.
This lets us maintain an invariant relation at every step: q × m + r = n, where q is the partially-constructed quotient (above the division bracket) and r the partially-constructed remainder (bottom number below the division bracket). Note that, initially q=0 and r=n, so this property holds initially; the process reduces r and increases q with each step, eventually stopping when r<m if we seek the answer in quotient + integer remainder form.
Revisiting the 500 ÷ 4 example above, we find
125 (q, changes from 000 to 100 to 120 to 125 as per notes below) 4)500 400 ( 4 × 100 = 400) 100 (500 - 400 = 100; now q=100, r=100; note q×4+r = 500.) 80 ( 4 × 20 = 80) 20 (100 - 80 = 20; now q=120, r= 20; note q×4+r = 500.) 20 ( 4 × 5 = 20) 0 ( 20 - 20 = 0; now q=125, r= 0; note q×4+r = 500.)
Example with multi-digit divisor
A divisor of any number of digits can be used. In this example, 1260257 is to be divided by 37. First the problem is set up as follows:
37)1260257
Digits of the number 1260257 are taken until a number greater than or equal to 37 occurs. So 1 and 12 are less than 37, but 126 is greater. Next, the greatest multiple of 37 less than or equal to 126 is computed. So 3 × 37 = 111 < 126, but 4 × 37 > 126. The multiple 111 is written underneath the 126 and the 3 is written on the top where the solution will appear:
3 37)1260257 111
Note carefully which place-value column these digits are written into. The 3 in the quotient goes in the same column (ten-thousands place) as the 6 in the dividend 1260257, which is the same column as the last digit of 111.
The 111 is then subtracted from the line above, ignoring all digits to the right:
3 37)1260257 111 15
Now the digit from the next smaller place value of the dividend is copied down and appended to the result 15:
3 37)1260257 111 150
The process repeats: the greatest multiple of 37 less than or equal to 150 is subtracted. This is 148 = 4 × 37, so a 4 is added to the top as the next quotient digit. Then the result of the subtraction is extended by another digit taken from the dividend:
34 37)1260257 111 150 148 22
The greatest multiple of 37 less than or equal to 22 is 0 × 37 = 0. Subtracting 0 from 22 gives 22, we often don't write the subtraction step. Instead, we simply take another digit from the dividend:
340 37)1260257 111 150 148 225
The process is repeated until 37 divides the last line exactly:
34061 37)1260257 111 150 148 225 222 37
Mixed mode long division
For non-decimal currencies (such as the British £sd system before 1971) and measures (such as avoirdupois) mixed mode division must be used. Consider dividing 50 miles 600 yards into 37 pieces:
mi - yd - ft - in 1 - 634 1 9 r. 15" 37) 50 - 600 - 0 - 0 37 22880 66 348 13 23480 66 348 1760 222 37 333 22880 128 29 15 ===== 111 348 == 170 === 148 22 66 ==
Each of the four columns is worked in turn. Starting with the miles: 50/37 = 1 remainder 13. No further division is possible, so perform a long multiplication by 1,760 to convert miles to yards, the result is 22,880 yards. Carry this to the top of the yards column and add it to the 600 yards in the dividend giving 23,480. Long division of 23,480 / 37 now proceeds as normal yielding 634 with remainder 22. The remainder is multiplied by 3 to get feet and carried up to the feet column. Long division of the feet gives 1 remainder 29 which is then multiplied by twelve to get 348 inches. Long division continues with the final remainder of 15 inches being shown on the result line.
Interpretation of decimal results
When the quotient is not an integer and the division process is extended beyond the decimal point, one of two things can happen:
- The process can terminate, which means that a remainder of 0 is reached; or
- A remainder could be reached that is identical to a previous remainder that occurred after the decimal points were written. In the latter case, continuing the process would be pointless, because from that point onward the same sequence of digits would appear in the quotient over and over. So a bar is drawn over the repeating sequence to indicate that it repeats forever (i.e., every rational number is either a terminating or repeating decimal).
Notation in non-English-speaking countries
This section has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these messages)
|
China, Japan, Korea use the same notation as English-speaking nations including India. Elsewhere, the same general principles are used, but the figures are often arranged differently.
Latin America
In Latin America (except Argentina, Bolivia, Mexico, Colombia, Paraguay, Venezuela, Uruguay and Brazil), the calculation is almost exactly the same, but is written down differently as shown below with the same two examples used above. Usually the quotient is written under a bar drawn under the divisor. A long vertical line is sometimes drawn to the right of the calculations.
500 ÷ 4 = 125 (Explanations) 4 ( 4 × 1 = 4) 10 ( 5 - 4 = 1) 8 ( 4 × 2 = 8) 20 (10 - 8 = 2) 20 ( 4 × 5 = 20) 0 (20 - 20 = 0)
and
127 ÷ 4 = 31.75 124 30 (bring down 0; decimal to quotient) 28 (7 × 4 = 28) 20 (an additional zero is added) 20 (5 × 4 = 20) 0
In Mexico, the English-speaking world notation is used, except that only the result of the subtraction is annotated and the calculation is done mentally, as shown below:
125 (Explanations) 4)500 10 ( 5 - 4 = 1) 20 (10 - 8 = 2) 0 (20 - 20 = 0)
In Bolivia, Brazil, Paraguay, Venezuela, French-speaking Canada, Colombia, and Peru, the European notation (see below) is used, except that the quotient is not separated by a vertical line, as shown below:
127|4 −124 31,75 30 −28 20 −20 0
Same procedure applies in Mexico, Uruguay and Argentina, only the result of the subtraction is annotated and the calculation is done mentally.
Eurasia
In Spain, Italy, France, Portugal, Lithuania, Romania, Turkey, Greece, Belgium, Belarus, Ukraine, and Russia, the divisor is to the right of the dividend, and separated by a vertical bar. The division also occurs in the column, but the quotient (result) is written below the divider, and separated by the horizontal line. The same method is used in Iran, Vietnam, and Mongolia.
127|4 −124|31,75 30 −28 20 −20 0
In Cyprus, as well as in France, a long vertical bar separates the dividend and subsequent subtractions from the quotient and divisor, as in the example below of 6359 divided by 17, which is 374 with a remainder of 1.
6359|17 −51 |374 125 | −119 | 69| −68| 1|
Decimal numbers are not divided directly, the dividend and divisor are multiplied by a power of ten so that the division involves two whole numbers. Therefore, if one were dividing 12,7 by 0,4 (commas being used instead of decimal points), the dividend and divisor would first be changed to 127 and 4, and then the division would proceed as above.
In Austria, Germany and Switzerland, the notational form of a normal equation is used. <dividend> : <divisor> = <quotient>, with the colon ":" denoting a binary infix symbol for the division operator (analogous to "/" or "÷"). In these regions the decimal separator is written as a comma. (cf. first section of Latin American countries above, where it's done virtually the same way):
127 : 4 = 31,75 −12 07 −4 30 −28 20 −20 0
The same notation is adopted in Denmark, Norway, Bulgaria, North Macedonia, Poland, Croatia, Slovenia, Hungary, Czech Republic, Slovakia, Vietnam and in Serbia.
In the Netherlands, the following notation is used:
12 / 135 \ 11,25 12 15 12 30 24 60 60 0
In Finland, the Italian method detailed above was replaced by the Anglo-American one in the 1970s. In the early 2000s, however, some textbooks have adopted the German method as it retains the order between the divisor and the dividend.
Algorithm for arbitrary base
Every natural number can be uniquely represented in an arbitrary number base
as a sequence of digits
where
for all
, where
is the number of digits in
. The value of
in terms of its digits and the base is
Let be the dividend and
be the divisor, where
is the number of digits in
. If
, then quotient
and remainder
. Otherwise, we iterate from
, before stopping.
For each iteration , let
be the quotient extracted so far,
be the intermediate dividend,
be the intermediate remainder,
be the next digit of the original dividend, and
be the next digit of the quotient. By definition of digits in base
,
. By definition of remainder,
. All values are natural numbers. We initiate
the first digits of
.
With every iteration, the three equations are true:
There only exists one such such that
.
According to the definition of the remainder ,
For the left side of the inequality, we select the largest such that
There is always a largest such , because
and if
, then
but because ,
,
, this is always true. For the right side of the inequality we assume there exists a smallest
such that
Since this is the smallest that the inequality holds true, this must mean that for
which is exactly the same as the left side of the inequality. Thus, . As
will always exist, so will
equal to
, and there is only one unique
that is valid for the inequality. Thus we have proven the existence and uniqueness of
.
The final quotient is and the final remainder is
Examples
In base 10, using the example above with and
, the initial values
and
.
0 | 2 | 0 | |||
1 | 6 | 3 | |||
2 | 0 | 4 | |||
3 | 2 | 0 | |||
4 | 5 | 6 | |||
5 | 7 | 1 |
Thus, and
.
In base 16, with and
, the initial values are
and
.
0 | 4 | ||||
1 | 1 | 8 | |||
2 | 2 | ||||
3 | 4 | ||||
4 | 5 |
Thus, and
.
If one doesn't have the addition, subtraction, or multiplication tables for base b memorised, then this algorithm still works if the numbers are converted to decimal and at the end are converted back to base b. For example, with the above example,
and
with . The initial values are
and
.
0 | 4 | ||||
1 | 1 | 8 | |||
2 | 2 | ||||
3 | 4 | ||||
4 | 5 |
Thus, and
.
This algorithm can be done using the same kind of pencil-and-paper notations as shown in above sections.
d8f45 r. 5 12 ) f412df ea a1 90 112 10e 4d 48 5f 5a 5
Rational quotients
If the quotient is not constrained to be an integer, then the algorithm does not terminate for . Instead, if
then
by definition. If the remainder
is equal to zero at any iteration, then the quotient is a
-adic fraction, and is represented as a finite decimal expansion in base
positional notation. Otherwise, it is still a rational number but not a
-adic rational, and is instead represented as an infinite repeating decimal expansion in base
positional notation.
Binary division
Performance
On each iteration, the most time-consuming task is to select . We know that there are
possible values, so we can find
using
comparisons. Each comparison will require evaluating
. Let
be the number of digits in the dividend
and
be the number of digits in the divisor
. The number of digits in
. The multiplication of
is therefore
, and likewise the subtraction of
. Thus it takes
to select
. The remainder of the algorithm are addition and the digit-shifting of
and
to the left one digit, and so takes time
and
in base
, so each iteration takes
, or just
. For all
digits, the algorithm takes time
, or
in base
.
Generalizations
Rational numbers
Long division of integers can easily be extended to include non-integer dividends, as long as they are rational. This is because every rational number has a recurring decimal expansion. The procedure can also be extended to include divisors which have a finite or terminating decimal expansion (i.e. decimal fractions). In this case the procedure involves multiplying the divisor and dividend by the appropriate power of ten so that the new divisor is an integer – taking advantage of the fact that a ÷ b = (ca) ÷ (cb) – and then proceeding as above.
Polynomials
A generalised version of this method called polynomial long division is also used for dividing polynomials (sometimes using a shorthand version called synthetic division).
See also
- Algorism
- Arbitrary-precision arithmetic
- Egyptian multiplication and division
- Elementary arithmetic
- Fourier division
- Polynomial long division
- Short division
References
- Weisstein, Eric W. "Long Division". MathWorld.
- "Islamic Mathematics". new.math.uiuc.edu. Retrieved 2016-03-31.
- Victor J. Katz, A History of Mathematics: An Introduction, Addison-Wesley, 2008
- Will Windsor and George Booker (2005). "A Historical Analysis of the Division Concept" (PDF).
- Henry Briggs - Oxford Reference.
- Klein, Milgram. "The Role of Long Division in the K-12 Curriculum" (PDF). CiteSeer. Retrieved June 21, 2019.
- Nicholson, W. Keith (2012), Introduction to Abstract Algebra, 4th ed., John Wiley & Sons, p. 206.
- "Long Division Symbol", Wolfram MathWorld, retrieved 11 February 2016.
- Miller, Jeff (2010), "Symbols of Operation", Earliest Uses of Various Mathematical Symbols.
- Hill, John (1772) [First published 1712], Arithmetick both in the theory and practice (11th ed.), London: Straben et al., p. 200, retrieved 12 February 2016
- Ikäheimo, Hannele: Jakolaskuun ymmärrystä (in Finnish)
External links
- Long Division Algorithm
- Long Division and Euclid's Lemma
In arithmetic long division is a standard division algorithm suitable for dividing multi digit Hindu Arabic numerals positional notation that is simple enough to perform by hand It breaks down a division problem into a series of easier steps As in all division problems one number called the dividend is divided by another called the divisor producing a result called the quotient It enables computations involving arbitrarily large numbers to be performed by following a series of simple steps The abbreviated form of long division is called short division which is almost always used instead of long division when the divisor has only one digit HistoryRelated algorithms have existed since the 12th century Al Samawal al Maghribi 1125 1174 performed calculations with decimal numbers that essentially require long division leading to infinite decimal results but without formalizing the algorithm Caldrini 1491 is the earliest printed example of long division known as the Danda method in medieval Italy and it became more practical with the introduction of decimal notation for fractions by Pitiscus 1608 The specific algorithm in modern use was introduced by Henry Briggs c 1600 EducationThe examples and perspective in this article may not represent a worldwide view of the subject You may improve this article discuss the issue on the talk page or create a new article as appropriate May 2024 Learn how and when to remove this message Inexpensive calculators and computers have become the most common way to solve division problems eliminating a traditional mathematical exercise and decreasing the educational opportunity to show how to do so by paper and pencil techniques Internally those devices use one of a variety of division algorithms the faster of which rely on approximations and multiplications to achieve the tasks In North America long division has been especially targeted for de emphasis or even elimination from the school curriculum by reform mathematics though it has been traditionally introduced in the 4th 5th or even 6th grades MethodIn English speaking countries long division does not use the division slash or division sign symbols but instead constructs a tableau The divisor is separated from the dividend by a right parenthesis or vertical bar the dividend is separated from the quotient by a vinculum i e an overbar The combination of these two symbols is sometimes known as a long division symbol or division bracket It developed in the 18th century from an earlier single line notation separating the dividend from the quotient by a left parenthesis The process is begun by dividing the left most digit of the dividend by the divisor The quotient rounded down to an integer becomes the first digit of the result and the remainder is calculated this step is notated as a subtraction This remainder carries forward when the process is repeated on the following digit of the dividend notated as bringing down the next digit to the remainder When all digits have been processed and no remainder is left the process is complete An example is shown below representing the division of 500 by 4 with a result of 125 1 2 5 Explanations 4 500 4 4 1 4 1 0 5 4 1 8 4 2 8 2 0 10 8 2 20 4 5 20 0 20 20 0 An example of long division performed without a calculator A more detailed breakdown of the steps goes as follows Find the shortest sequence of digits starting from the left end of the dividend 500 that the divisor 4 goes into at least once In this case this is simply the first digit 5 The largest number that the divisor 4 can be multiplied by without exceeding 5 is 1 so the digit 1 is put above the 5 to start constructing the quotient Next the 1 is multiplied by the divisor 4 to obtain the largest whole number that is a multiple of the divisor 4 without exceeding the 5 4 in this case This 4 is then placed under and subtracted from the 5 to get the remainder 1 which is placed under the 4 under the 5 Afterwards the first as yet unused digit in the dividend in this case the first digit 0 after the 5 is copied directly underneath itself and next to the remainder 1 to form the number 10 At this point the process is repeated enough times to reach a stopping point The largest number by which the divisor 4 can be multiplied without exceeding 10 is 2 so 2 is written above as the second leftmost quotient digit This 2 is then multiplied by the divisor 4 to get 8 which is the largest multiple of 4 that does not exceed 10 so 8 is written below 10 and the subtraction 10 minus 8 is performed to get the remainder 2 which is placed below the 8 The next digit of the dividend the last 0 in 500 is copied directly below itself and next to the remainder 2 to form 20 Then the largest number by which the divisor 4 can be multiplied without exceeding 20 which is 5 is placed above as the third leftmost quotient digit This 5 is multiplied by the divisor 4 to get 20 which is written below and subtracted from the existing 20 to yield the remainder 0 which is then written below the second 20 At this point since there are no more digits to bring down from the dividend and the last subtraction result was 0 we can be assured that the process finished If the last remainder when we ran out of dividend digits had been something other than 0 there would have been two possible courses of action We could just stop there and say that the dividend divided by the divisor is the quotient written at the top with the remainder written at the bottom and write the answer as the quotient followed by a fraction that is the remainder divided by the divisor We could extend the dividend by writing it as say 500 000 and continue the process using a decimal point in the quotient directly above the decimal point in the dividend in order to get a decimal answer as in the following example 31 75 4 127 00 12 12 4 3 07 0 remainder bring down next figure 4 7 4 1 r 3 3 0 bring down 0 and the decimal point 2 8 7 4 28 30 4 7 r 2 20 an additional zero is brought down 20 5 4 20 0 In this example the decimal part of the result is calculated by continuing the process beyond the units digit bringing down zeros as being the decimal part of the dividend This example also illustrates that at the beginning of the process a step that produces a zero can be omitted Since the first digit 1 is less than the divisor 4 the first step is instead performed on the first two digits 12 Similarly if the divisor were 13 one would perform the first step on 127 rather than 12 or 1 Basic procedure for long division of n m Find the location of all decimal points in the dividend n and divisor m If necessary simplify the long division problem by moving the decimals of the divisor and dividend by the same number of decimal places to the right or to the left so that the decimal of the divisor is to the right of the last digit When doing long division keep the numbers lined up straight from top to bottom under the tableau After each step be sure the remainder for that step is less than the divisor If it is not there are three possible problems the multiplication is wrong the subtraction is wrong or a greater quotient is needed In the end the remainder r is added to the growing quotient as a fraction r m Invariant property and correctness The basic presentation of the steps of the process above focus on the what steps are to be performed rather than the properties of those steps that ensure the result will be correct specifically that q m r n where q is the final quotient and r the final remainder A slight variation of presentation requires more writing and requires that we change rather than just update digits of the quotient but can shed more light on why these steps actually produce the right answer by allowing evaluation of q m r at intermediate points in the process This illustrates the key property used in the derivation of the algorithm below Specifically we amend the above basic procedure so that we fill the space after the digits of the quotient under construction with 0 s to at least the 1 s place and include those 0 s in the numbers we write below the division bracket This lets us maintain an invariant relation at every step q m r n where q is the partially constructed quotient above the division bracket and r the partially constructed remainder bottom number below the division bracket Note that initially q 0 and r n so this property holds initially the process reduces r and increases q with each step eventually stopping when r lt m if we seek the answer in quotient integer remainder form Revisiting the 500 4 example above we find 1 2 5 q changes from 000 to 100 to 1 20 to 1 2 5 as per notes below 4 500 400 4 100 400 100 500 400 100 now q 100 r 100 note q 4 r 500 80 4 20 80 20 100 80 20 now q 1 20 r 20 note q 4 r 500 20 4 5 20 0 20 20 0 now q 1 2 5 r 0 note q 4 r 500 Example with multi digit divisor Animated example of multi digit long division A divisor of any number of digits can be used In this example 1260257 is to be divided by 37 First the problem is set up as follows 37 1260257 Digits of the number 1260257 are taken until a number greater than or equal to 37 occurs So 1 and 12 are less than 37 but 126 is greater Next the greatest multiple of 37 less than or equal to 126 is computed So 3 37 111 lt 126 but 4 37 gt 126 The multiple 111 is written underneath the 126 and the 3 is written on the top where the solution will appear 3 37 1260257 111 Note carefully which place value column these digits are written into The 3 in the quotient goes in the same column ten thousands place as the 6 in the dividend 1260257 which is the same column as the last digit of 111 The 111 is then subtracted from the line above ignoring all digits to the right 3 37 1260257 111 15 Now the digit from the next smaller place value of the dividend is copied down and appended to the result 15 3 37 1260257 111 150 The process repeats the greatest multiple of 37 less than or equal to 150 is subtracted This is 148 4 37 so a 4 is added to the top as the next quotient digit Then the result of the subtraction is extended by another digit taken from the dividend 34 37 1260257 111 150 148 22 The greatest multiple of 37 less than or equal to 22 is 0 37 0 Subtracting 0 from 22 gives 22 we often don t write the subtraction step Instead we simply take another digit from the dividend 340 37 1260257 111 150 148 225 The process is repeated until 37 divides the last line exactly 34061 37 1260257 111 150 148 225 222 37 Mixed mode long division For non decimal currencies such as the British sd system before 1971 and measures such as avoirdupois mixed mode division must be used Consider dividing 50 miles 600 yards into 37 pieces mi yd ft in 1 634 1 9 r 15 37 50 600 0 0 37 22880 66 348 13 23480 66 348 1760 222 37 333 22880 128 29 15 111 348 170 148 22 66 Each of the four columns is worked in turn Starting with the miles 50 37 1 remainder 13 No further division is possible so perform a long multiplication by 1 760 to convert miles to yards the result is 22 880 yards Carry this to the top of the yards column and add it to the 600 yards in the dividend giving 23 480 Long division of 23 480 37 now proceeds as normal yielding 634 with remainder 22 The remainder is multiplied by 3 to get feet and carried up to the feet column Long division of the feet gives 1 remainder 29 which is then multiplied by twelve to get 348 inches Long division continues with the final remainder of 15 inches being shown on the result line Interpretation of decimal results When the quotient is not an integer and the division process is extended beyond the decimal point one of two things can happen The process can terminate which means that a remainder of 0 is reached or A remainder could be reached that is identical to a previous remainder that occurred after the decimal points were written In the latter case continuing the process would be pointless because from that point onward the same sequence of digits would appear in the quotient over and over So a bar is drawn over the repeating sequence to indicate that it repeats forever i e every rational number is either a terminating or repeating decimal Notation in non English speaking countriesThis section has multiple issues Please help improve it or discuss these issues on the talk page Learn how and when to remove these messages This section does not cite any sources Please help improve this section by adding citations to reliable sources Unsourced material may be challenged and removed March 2019 Learn how and when to remove this message This section may require cleanup to meet Wikipedia s quality standards The specific problem is Those blocks aren t doing a very good job of showing off the notation images would likely be better Also using different numbers in the examples reduces emphasis on the notation which is what s supposed to be on display so maybe unify that Please help improve this section if you can March 2019 Learn how and when to remove this message The examples and perspective in this section may not represent a worldwide view of the subject You may improve this section discuss the issue on the talk page or create a new section as appropriate August 2022 Learn how and when to remove this message Learn how and when to remove this message China Japan Korea use the same notation as English speaking nations including India Elsewhere the same general principles are used but the figures are often arranged differently Latin America In Latin America except Argentina Bolivia Mexico Colombia Paraguay Venezuela Uruguay and Brazil the calculation is almost exactly the same but is written down differently as shown below with the same two examples used above Usually the quotient is written under a bar drawn under the divisor A long vertical line is sometimes drawn to the right of the calculations 500 4 1 2 5 Explanations 4 4 1 4 1 0 5 4 1 8 4 2 8 2 0 10 8 2 20 4 5 20 0 20 20 0 and 127 4 31 75 124 30 bring down 0 decimal to quotient 28 7 4 28 20 an additional zero is added 20 5 4 20 0 In Mexico the English speaking world notation is used except that only the result of the subtraction is annotated and the calculation is done mentally as shown below 1 2 5 Explanations 4 500 1 0 5 4 1 2 0 10 8 2 0 20 20 0 In Bolivia Brazil Paraguay Venezuela French speaking Canada Colombia and Peru the European notation see below is used except that the quotient is not separated by a vertical line as shown below 127 4 124 31 75 30 28 20 20 0 Same procedure applies in Mexico Uruguay and Argentina only the result of the subtraction is annotated and the calculation is done mentally Eurasia In Spain Italy France Portugal Lithuania Romania Turkey Greece Belgium Belarus Ukraine and Russia the divisor is to the right of the dividend and separated by a vertical bar The division also occurs in the column but the quotient result is written below the divider and separated by the horizontal line The same method is used in Iran Vietnam and Mongolia 127 4 124 31 75 30 28 20 20 0 In Cyprus as well as in France a long vertical bar separates the dividend and subsequent subtractions from the quotient and divisor as in the example below of 6359 divided by 17 which is 374 with a remainder of 1 6359 17 51 374 125 119 69 68 1 Decimal numbers are not divided directly the dividend and divisor are multiplied by a power of ten so that the division involves two whole numbers Therefore if one were dividing 12 7 by 0 4 commas being used instead of decimal points the dividend and divisor would first be changed to 127 and 4 and then the division would proceed as above In Austria Germany and Switzerland the notational form of a normal equation is used lt dividend gt lt divisor gt lt quotient gt with the colon denoting a binary infix symbol for the division operator analogous to or In these regions the decimal separator is written as a comma cf first section of Latin American countries above where it s done virtually the same way 127 4 31 75 12 07 4 30 28 20 20 0 The same notation is adopted in Denmark Norway Bulgaria North Macedonia Poland Croatia Slovenia Hungary Czech Republic Slovakia Vietnam and in Serbia In the Netherlands the following notation is used 12 135 11 25 12 15 12 30 24 60 60 0 In Finland the Italian method detailed above was replaced by the Anglo American one in the 1970s In the early 2000s however some textbooks have adopted the German method as it retains the order between the divisor and the dividend Algorithm for arbitrary baseEvery natural number n displaystyle n can be uniquely represented in an arbitrary number base b gt 1 displaystyle b gt 1 as a sequence of digits n a0a1a2 ak 1 displaystyle n alpha 0 alpha 1 alpha 2 alpha k 1 where 0 ai lt b displaystyle 0 leq alpha i lt b for all 0 i lt k displaystyle 0 leq i lt k where k displaystyle k is the number of digits in n displaystyle n The value of n displaystyle n in terms of its digits and the base is n i 0k 1aibk i 1 displaystyle n sum i 0 k 1 alpha i b k i 1 Let n displaystyle n be the dividend and m displaystyle m be the divisor where l displaystyle l is the number of digits in m displaystyle m If k lt l displaystyle k lt l then quotient q 0 displaystyle q 0 and remainder r n displaystyle r n Otherwise we iterate from 0 i k l displaystyle 0 leq i leq k l before stopping For each iteration i displaystyle i let qi displaystyle q i be the quotient extracted so far di displaystyle d i be the intermediate dividend ri displaystyle r i be the intermediate remainder ai displaystyle alpha i be the next digit of the original dividend and bi displaystyle beta i be the next digit of the quotient By definition of digits in base b displaystyle b 0 bi lt b displaystyle 0 leq beta i lt b By definition of remainder 0 ri lt m displaystyle 0 leq r i lt m All values are natural numbers We initiate q 1 0 displaystyle q 1 0 r 1 i 0l 2aibl 2 i displaystyle r 1 sum i 0 l 2 alpha i b l 2 i the first l 1 displaystyle l 1 digits of n displaystyle n With every iteration the three equations are true di bri 1 ai l 1 displaystyle d i br i 1 alpha i l 1 ri di mbi bri 1 ai l 1 mbi displaystyle r i d i m beta i br i 1 alpha i l 1 m beta i qi bqi 1 bi displaystyle q i bq i 1 beta i There only exists one such bi displaystyle beta i such that 0 ri lt m displaystyle 0 leq r i lt m Proof of existence and uniqueness of bi displaystyle beta i According to the definition of the remainder ri displaystyle r i 0 ri lt m displaystyle 0 leq r i lt m 0 bri 1 ai l 1 mbi lt m displaystyle 0 leq br i 1 alpha i l 1 m beta i lt m mbi bri 1 ai l 1 lt m bi 1 displaystyle m beta i leq br i 1 alpha i l 1 lt m beta i 1 For the left side of the inequality we select the largest bi displaystyle beta i such that mbi bri 1 ai l 1 displaystyle m beta i leq br i 1 alpha i l 1 There is always a largest such bi displaystyle beta i because 0 bi lt b displaystyle 0 leq beta i lt b and if bi 0 displaystyle beta i 0 then 0 bri 1 ai l 1 displaystyle 0 leq br i 1 alpha i l 1 but because b gt 1 displaystyle b gt 1 ri 1 0 displaystyle r i 1 geq 0 ai l 1 0 displaystyle alpha i l 1 geq 0 this is always true For the right side of the inequality we assume there exists a smallest bi displaystyle beta i prime such that bri 1 ai l 1 lt m bi 1 displaystyle br i 1 alpha i l 1 lt m beta i prime 1 Since this is the smallest bi displaystyle beta i prime that the inequality holds true this must mean that for bi 1 displaystyle beta i prime 1 bri 1 ai l 1 mbi displaystyle br i 1 alpha i l 1 geq m beta i prime which is exactly the same as the left side of the inequality Thus bi bi displaystyle beta i beta i prime As bi displaystyle beta i will always exist so will bi displaystyle beta i prime equal to bi displaystyle beta i and there is only one unique bi displaystyle beta i that is valid for the inequality Thus we have proven the existence and uniqueness of bi displaystyle beta i The final quotient is q qk l displaystyle q q k l and the final remainder is r rk l displaystyle r r k l Examples In base 10 using the example above with n 1260257 displaystyle n 1260257 and m 37 displaystyle m 37 the initial values q 1 0 displaystyle q 1 0 and r 1 1 displaystyle r 1 1 0 i k l displaystyle 0 leq i leq k l ai l 1 displaystyle alpha i l 1 di bri 1 ai l 1 displaystyle d i br i 1 alpha i l 1 bi displaystyle beta i ri di mbi displaystyle r i d i m beta i qi bqi 1 bi displaystyle q i bq i 1 beta i 0 2 10 1 2 12 displaystyle 10 cdot 1 2 12 0 12 37 0 12 displaystyle 12 37 cdot 0 12 10 0 0 0 displaystyle 10 cdot 0 0 0 1 6 10 12 6 126 displaystyle 10 cdot 12 6 126 3 126 37 3 15 displaystyle 126 37 cdot 3 15 10 0 3 3 displaystyle 10 cdot 0 3 3 2 0 10 15 0 150 displaystyle 10 cdot 15 0 150 4 150 37 4 2 displaystyle 150 37 cdot 4 2 10 3 4 34 displaystyle 10 cdot 3 4 34 3 2 10 2 2 22 displaystyle 10 cdot 2 2 22 0 22 37 0 22 displaystyle 22 37 cdot 0 22 10 34 0 340 displaystyle 10 cdot 34 0 340 4 5 10 22 5 225 displaystyle 10 cdot 22 5 225 6 225 37 6 3 displaystyle 225 37 cdot 6 3 10 340 6 3406 displaystyle 10 cdot 340 6 3406 5 7 10 3 7 37 displaystyle 10 cdot 3 7 37 1 37 37 1 0 displaystyle 37 37 cdot 1 0 10 3406 1 34061 displaystyle 10 cdot 3406 1 34061 Thus q 34061 displaystyle q 34061 and r 0 displaystyle r 0 In base 16 with n f412df displaystyle n text f412df and m 12 displaystyle m 12 the initial values are q 1 0 displaystyle q 1 0 and r 1 f displaystyle r 1 text f 0 i k l displaystyle 0 leq i leq k l ai l 1 displaystyle alpha i l 1 di bri 1 ai l 1 displaystyle d i br i 1 alpha i l 1 bi displaystyle beta i ri di mbi displaystyle r i d i m beta i qi bqi 1 bi displaystyle q i bq i 1 beta i 0 4 10 f 4 f4 displaystyle 10 cdot text f 4 text f4 d displaystyle text d f4 12 d a displaystyle text f4 12 cdot text d text a 10 0 d d displaystyle 10 cdot 0 text d text d 1 1 10 a 1 a1 displaystyle 10 cdot text a 1 text a1 8 a1 12 8 11 displaystyle text a1 12 cdot 8 11 10 d 8 d8 displaystyle 10 cdot text d 8 text d8 2 2 10 11 2 112 displaystyle 10 cdot 11 2 112 f displaystyle text f 112 12 f 4 displaystyle 112 12 cdot text f 4 10 d8 f d8f displaystyle 10 cdot text d8 text f text d8f 3 d 13 displaystyle text d 13 10 4 d 4d displaystyle 10 cdot 4 text d text 4d 4 4d 12 4 5 displaystyle text 4d 12 cdot 4 5 10 d8f 4 d8f4 displaystyle 10 cdot text d8f 4 text d8f4 4 f 15 displaystyle text f 15 10 5 f 5f displaystyle 10 cdot 5 text f text 5f 5 5f 12 5 5 displaystyle text 5f 12 cdot 5 5 10 d8f4 5 d8f45 displaystyle 10 cdot text d8f4 5 text d8f45 Thus q d8f45 displaystyle q text d8f45 and r 5 displaystyle r text 5 If one doesn t have the addition subtraction or multiplication tables for base b memorised then this algorithm still works if the numbers are converted to decimal and at the end are converted back to base b For example with the above example n f412df16 15 165 4 164 1 163 2 162 13 161 15 160 displaystyle n text f412df 16 15 cdot 16 5 4 cdot 16 4 1 cdot 16 3 2 cdot 16 2 13 cdot 16 1 15 cdot 16 0 and m 1216 1 161 2 160 18 displaystyle m text 12 16 1 cdot 16 1 2 cdot 16 0 18 with b 16 displaystyle b 16 The initial values are q 1 0 displaystyle q 1 0 and r 1 15 displaystyle r 1 15 0 i k l displaystyle 0 leq i leq k l ai l 1 displaystyle alpha i l 1 di bri 1 ai l 1 displaystyle d i br i 1 alpha i l 1 bi displaystyle beta i ri di mbi displaystyle r i d i m beta i qi bqi 1 bi displaystyle q i bq i 1 beta i 0 4 16 15 4 244 displaystyle 16 cdot 15 4 244 13 d displaystyle 13 text d 244 18 13 10 displaystyle 244 18 cdot 13 10 16 0 13 13 displaystyle 16 cdot 0 13 13 1 1 16 10 1 161 displaystyle 16 cdot 10 1 161 8 161 18 8 17 displaystyle 161 18 cdot 8 17 16 13 8 displaystyle 16 cdot 13 8 2 2 16 17 2 274 displaystyle 16 cdot 17 2 274 15 f displaystyle 15 text f 274 18 15 4 displaystyle 274 18 cdot 15 4 16 16 13 8 15 162 13 16 8 15 displaystyle 16 cdot 16 cdot 13 8 15 16 2 cdot 13 16 cdot 8 15 3 d 13 displaystyle text d 13 16 4 13 77 displaystyle 16 cdot 4 13 77 4 77 18 4 5 displaystyle 77 18 cdot 4 5 16 162 13 16 8 15 4 163 13 162 8 16 15 4 displaystyle 16 cdot 16 2 cdot 13 16 cdot 8 15 4 16 3 cdot 13 16 2 cdot 8 16 cdot 15 4 4 f 15 displaystyle text f 15 16 5 15 95 displaystyle 16 cdot 5 15 95 5 95 18 5 5 displaystyle 95 18 cdot 5 5 16 163 13 162 8 16 15 4 164 13 163 8 162 15 161 4 5 displaystyle 16 cdot 16 3 cdot 13 16 2 cdot 8 16 cdot 15 4 16 4 cdot 13 16 3 cdot 8 16 2 cdot 15 16 1 cdot 4 5 Thus q 164 13 163 8 162 15 161 4 5 d8f4516 displaystyle q 16 4 cdot 13 16 3 cdot 8 16 2 cdot 15 16 1 cdot 4 5 text d8f45 16 and r 5 516 displaystyle r 5 text 5 16 This algorithm can be done using the same kind of pencil and paper notations as shown in above sections d8f45 r 5 12 f412df ea a1 90 112 10e 4d 48 5f 5a 5 Rational quotients If the quotient is not constrained to be an integer then the algorithm does not terminate for i gt k l displaystyle i gt k l Instead if i gt k l displaystyle i gt k l then ai 0 displaystyle alpha i 0 by definition If the remainder ri displaystyle r i is equal to zero at any iteration then the quotient is a b displaystyle b adic fraction and is represented as a finite decimal expansion in base b displaystyle b positional notation Otherwise it is still a rational number but not a b displaystyle b adic rational and is instead represented as an infinite repeating decimal expansion in base b displaystyle b positional notation Binary division Performance On each iteration the most time consuming task is to select bi displaystyle beta i We know that there are b displaystyle b possible values so we can find bi displaystyle beta i using O log b displaystyle O log b comparisons Each comparison will require evaluating di mbi displaystyle d i m beta i Let k displaystyle k be the number of digits in the dividend n displaystyle n and l displaystyle l be the number of digits in the divisor m displaystyle m The number of digits in di l 1 displaystyle d i leq l 1 The multiplication of mbi displaystyle m beta i is therefore O l displaystyle O l and likewise the subtraction of di mbi displaystyle d i m beta i Thus it takes O llog b displaystyle O l log b to select bi displaystyle beta i The remainder of the algorithm are addition and the digit shifting of qi displaystyle q i and ri displaystyle r i to the left one digit and so takes time O k displaystyle O k and O l displaystyle O l in base b displaystyle b so each iteration takes O llog b k l displaystyle O l log b k l or just O llog b k displaystyle O l log b k For all k l 1 displaystyle k l 1 digits the algorithm takes time O k l 1 llog b k displaystyle O k l 1 l log b k or O kllog b k2 displaystyle O kl log b k 2 in base b displaystyle b GeneralizationsRational numbers Long division of integers can easily be extended to include non integer dividends as long as they are rational This is because every rational number has a recurring decimal expansion The procedure can also be extended to include divisors which have a finite or terminating decimal expansion i e decimal fractions In this case the procedure involves multiplying the divisor and dividend by the appropriate power of ten so that the new divisor is an integer taking advantage of the fact that a b ca cb and then proceeding as above Polynomials A generalised version of this method called polynomial long division is also used for dividing polynomials sometimes using a shorthand version called synthetic division See alsoAlgorism Arbitrary precision arithmetic Egyptian multiplication and division Elementary arithmetic Fourier division Polynomial long division Short divisionReferencesWeisstein Eric W Long Division MathWorld Islamic Mathematics new math uiuc edu Retrieved 2016 03 31 Victor J Katz A History of Mathematics An Introduction Addison Wesley 2008 Will Windsor and George Booker 2005 A Historical Analysis of the Division Concept PDF Henry Briggs Oxford Reference Klein Milgram The Role of Long Division in the K 12 Curriculum PDF CiteSeer Retrieved June 21 2019 Nicholson W Keith 2012 Introduction to Abstract Algebra 4th ed John Wiley amp Sons p 206 Long Division Symbol Wolfram MathWorld retrieved 11 February 2016 Miller Jeff 2010 Symbols of Operation Earliest Uses of Various Mathematical Symbols Hill John 1772 First published 1712 Arithmetick both in the theory and practice 11th ed London Straben et al p 200 retrieved 12 February 2016 Ikaheimo Hannele Jakolaskuun ymmarrysta in Finnish External linksLong Division Algorithm Long Division and Euclid s Lemma