5071278 divided by 125 
Let's see how many times 125 fits into 5071278.

Advancing to step 1:
If we divide 5 by 125, we get 0 and a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 125

Let's proceed to step 2:
125 can be fit into 50 0 times, resulting in a remainder of 50.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 50 after subtracting 0 from 50.
Append the next digit (7) from the dividend to 50 and continue with: 507 / 125

Let's proceed to step 3:
When dividing 507 by 125, we get 4 with a remainder of 7.
Put 4 as the next digit of the answer. 
Result so far: 4.0
Subtracting 500 from 507 leaves us with 7.
Grab the next digit (1) from the dividend, add it to 7, then carry on: 71 / 125

Advancing to step 4:
When dividing 71 by 125, we get 0 with a remainder of 71.
The next digit of our result is 0. 
Result so far: 40.0
If we take 0 away from 71, we end up with 71.
Append the next digit (2) from the dividend to 71 and continue with: 712 / 125

On to step 5:
125 goes into 712 5 times with a remainder of 87.
Put 5 as the next digit of the answer. 
Result so far: 405.0
If we take 625 away from 712, we end up with 87.
Take the next digit (7) from the dividend and append it to 87, then repeat: 877 / 125

Advancing to step 6:
877 divided by 125 is 7 with a remainder of 2.
Use 7 as the next digit of our solution. 
Result so far: 4057.0
The remainder is 2 after subtracting 875 from 877.
Fetch the next digit (8) from the dividend, attach it to 2 and continue: 28 / 125

Moving on to step 7:
If we divide 28 by 125, we get 0 and a remainder of 28.
Write down 0 as next digit of the result. 
Result so far: 40570.0
If we subtract 0 from 28, we get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Advancing to step 8:
If we divide 280 by 125, we get 2 and a remainder of 30.
The number 2 becomes the next digit in our result. 
Result so far: 40570.2
Subtracting 250 from 280 leaves us with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Step 9:
If we divide 300 by 125, we get 2 and a remainder of 50.
Record the quotient 2 as the next digit in the result. 
Result so far: 40570.22
Subtracting 250 from 300 leaves us with 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

After the division, we end up with 40570.22 and a remainder of 0.05.