We divide 5118991 by 870
We want to figure out the number of times 5118991 can be divided by 870.

Let's proceed to step 1:
When dividing 5 by 870, we get 0 with a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Fetch the next digit (1) from the dividend, attach it to 5 and continue: 51 / 870

Advancing to step 2:
If we divide 51 by 870, we get 0 and a remainder of 51.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 51 and we're left with 51.
Append the next digit (1) from the dividend to 51 and continue with: 511 / 870

Advancing to step 3:
The number 870 fits into 511 0 times, leaving a remainder of 511.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 511 to get 511.
Grab the next digit (8) from the dividend, add it to 511, then carry on: 5118 / 870

Let's proceed to step 4:
When dividing 5118 by 870, we get 5 with a remainder of 768.
Write down 5 as next digit of the result. 
Result so far: 5.0
The remainder is 768 after subtracting 4350 from 5118.
Fetch the next digit (9) from the dividend, attach it to 768 and continue: 7689 / 870

Advancing to step 5:
When dividing 7689 by 870, we get 8 with a remainder of 729.
Put 8 as the next digit of the answer. 
Result so far: 58.0
Subtracting 6960 from 7689 leaves us with 729.
Include the next digit (9) from the dividend after 729, then repeat: 7299 / 870

Let's proceed to step 6:
870 goes into 7299 8 times with a remainder of 339.
Put 8 as the next digit of the answer. 
Result so far: 588.0
If we take 6960 away from 7299, we end up with 339.
Fetch the next digit (1) from the dividend, attach it to 339 and continue: 3391 / 870

Advancing to step 7:
The number 870 fits into 3391 3 times, leaving a remainder of 781.
Write down 3 as next digit of the result. 
Result so far: 5883.0
If we take 2610 away from 3391, we end up with 781.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7810, and continue the process.

Advancing to step 8:
7810 divided by 870 is 8 with a remainder of 850.
Write down 8 as next digit of the result. 
Result so far: 5883.8
If we subtract 6960 from 7810, we get 850.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8500, and continue the process.

Let's proceed to step 9:
If we divide 8500 by 870, we get 9 and a remainder of 670.
Record the quotient 9 as the next digit in the result. 
Result so far: 5883.89
If we subtract 7830 from 8500, we get 670.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6700, and continue the process.

Going ahead to step 10:
If we divide 6700 by 870, we get 7 and a remainder of 610.
Write down 7 as next digit of the result. 
Result so far: 5883.897
Subtracting 6090 from 6700 leaves us with 610.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6100, and continue the process.

Moving on to step 11:
The number 870 fits into 6100 7 times, leaving a remainder of 10.
The number 7 becomes the next digit in our result. 
Result so far: 5883.8977
Subtracting 6090 from 6100 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

The quotient of the division is 5883.8977, and the remainder is 0.0001.