We're dividing 50879957 by 31 
Our goal is to divide 50879957 by 31.

On to step 1:
31 goes into 5 0 times with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 31

Going ahead to step 2:
31 can be fit into 50 1 times, resulting in a remainder of 19.
The next digit of our result is 1. 
Result so far: 1.0
If we take 31 away from 50, we end up with 19.
Grab the next digit (8) from the dividend, add it to 19, then carry on: 198 / 31

Going ahead to step 3:
The number 31 fits into 198 6 times, leaving a remainder of 12.
Use 6 as the next digit of our solution. 
Result so far: 16.0
Subtracting 186 from 198 leaves us with 12.
Bring next digit (7) of the dividend behind the 12 and repeat the process: 127 / 31

Step 4:
127 divided by 31 is 4 with a remainder of 3.
Use 4 as the next digit of our solution. 
Result so far: 164.0
Subtracting 124 from 127 leaves us with 3.
Grab the next digit (9) from the dividend, add it to 3, then carry on: 39 / 31

Moving on to step 5:
When dividing 39 by 31, we get 1 with a remainder of 8.
Use 1 as the next digit of our solution. 
Result so far: 1641.0
Subtract 31 from 39 to get 8.
Fetch the next digit (9) from the dividend, attach it to 8 and continue: 89 / 31

Advancing to step 6:
31 can be fit into 89 2 times, resulting in a remainder of 27.
Put 2 as the next digit of the answer. 
Result so far: 16412.0
Subtracting 62 from 89 leaves us with 27.
Take the next digit (5) from the dividend and append it to 27, then repeat: 275 / 31

Going ahead to step 7:
31 goes into 275 8 times with a remainder of 27.
Use 8 as the next digit of our solution. 
Result so far: 164128.0
Subtracting 248 from 275 leaves us with 27.
Include the next digit (7) from the dividend after 27, then repeat: 277 / 31

Moving on to step 8:
31 goes into 277 8 times with a remainder of 29.
Write down 8 as next digit of the result. 
Result so far: 1641288.0
Subtract 248 from 277 to get 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Going ahead to step 9:
When dividing 290 by 31, we get 9 with a remainder of 11.
Record the quotient 9 as the next digit in the result. 
Result so far: 1641288.9
Subtracting 279 from 290 leaves us with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Moving on to step 10:
31 can be fit into 110 3 times, resulting in a remainder of 17.
The next digit of our result is 3. 
Result so far: 1641288.93
Subtracting 93 from 110 leaves us with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

On to step 11:
31 can be fit into 170 5 times, resulting in a remainder of 15.
The number 5 becomes the next digit in our result. 
Result so far: 1641288.935
Subtract 155 from 170 to get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Let's proceed to step 12:
31 can be fit into 150 4 times, resulting in a remainder of 26.
Use 4 as the next digit of our solution. 
Result so far: 1641288.9354
Deduct 124 from 150 and we're left with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Going ahead to step 13:
If we divide 260 by 31, we get 8 and a remainder of 12.
Write down 8 as next digit of the result. 
Result so far: 1641288.93548
Deduct 248 from 260 and we're left with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Going ahead to step 14:
31 can be fit into 120 3 times, resulting in a remainder of 27.
Record the quotient 3 as the next digit in the result. 
Result so far: 1641288.935483
Subtracting 93 from 120 leaves us with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Advancing to step 15:
31 goes into 270 8 times with a remainder of 22.
Put 8 as the next digit of the answer. 
Result so far: 1641288.9354838
Deduct 248 from 270 and we're left with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Step 16:
The number 31 fits into 220 7 times, leaving a remainder of 3.
The next digit of our result is 7. 
Result so far: 1641288.93548387
If we subtract 217 from 220, we get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

The quotient of the division is 1641288.93548387, and the remainder is 3e-09.