We look at the division of 12857877 by 317 
Our goal is to divide 12857877 by 317.

Moving on to step 1:
317 goes into 1 0 times with a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Include the next digit (2) from the dividend after 1, then repeat: 12 / 317

Going ahead to step 2:
The number 317 fits into 12 0 times, leaving a remainder of 12.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 12 to get 12.
Grab the next digit (8) from the dividend, add it to 12, then carry on: 128 / 317

Step 3:
317 can be fit into 128 0 times, resulting in a remainder of 128.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 128 to get 128.
Append the next digit (5) from the dividend to 128 and continue with: 1285 / 317

On to step 4:
317 goes into 1285 4 times with a remainder of 17.
Put 4 as the next digit of the answer. 
Result so far: 4.0
The remainder is 17 after subtracting 1268 from 1285.
Include the next digit (7) from the dividend after 17, then repeat: 177 / 317

On to step 5:
317 can be fit into 177 0 times, resulting in a remainder of 177.
Put 0 as the next digit of the answer. 
Result so far: 40.0
Subtracting 0 from 177 leaves us with 177.
Append the next digit (8) from the dividend to 177 and continue with: 1778 / 317

On to step 6:
The number 317 fits into 1778 5 times, leaving a remainder of 193.
Use 5 as the next digit of our solution. 
Result so far: 405.0
The remainder is 193 after subtracting 1585 from 1778.
Append the next digit (7) from the dividend to 193 and continue with: 1937 / 317

Going ahead to step 7:
317 goes into 1937 6 times with a remainder of 35.
The number 6 becomes the next digit in our result. 
Result so far: 4056.0
Subtract 1902 from 1937 to get 35.
Take the next digit (7) from the dividend and append it to 35, then repeat: 357 / 317

Let's proceed to step 8:
The number 317 fits into 357 1 times, leaving a remainder of 40.
Record the quotient 1 as the next digit in the result. 
Result so far: 40561.0
Deduct 317 from 357 and we're left with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Advancing to step 9:
The number 317 fits into 400 1 times, leaving a remainder of 83.
The next digit of our result is 1. 
Result so far: 40561.1
If we subtract 317 from 400, we get 83.
Since there are no more digits in the dividend, we add a zero to the remainder making it 830, and continue the process.

Moving on to step 10:
When dividing 830 by 317, we get 2 with a remainder of 196.
Write down 2 as next digit of the result. 
Result so far: 40561.12
Subtracting 634 from 830 leaves us with 196.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1960, and continue the process.

Going ahead to step 11:
The number 317 fits into 1960 6 times, leaving a remainder of 58.
Write down 6 as next digit of the result. 
Result so far: 40561.126
If we subtract 1902 from 1960, we get 58.
Since there are no more digits in the dividend, we add a zero to the remainder making it 580, and continue the process.

Let's proceed to step 12:
When dividing 580 by 317, we get 1 with a remainder of 263.
Use 1 as the next digit of our solution. 
Result so far: 40561.1261
Deduct 317 from 580 and we're left with 263.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2630, and continue the process.

Going ahead to step 13:
317 can be fit into 2630 8 times, resulting in a remainder of 94.
Use 8 as the next digit of our solution. 
Result so far: 40561.12618
Deduct 2536 from 2630 and we're left with 94.
Since there are no more digits in the dividend, we add a zero to the remainder making it 940, and continue the process.

On to step 14:
317 can be fit into 940 2 times, resulting in a remainder of 306.
The next digit of our result is 2. 
Result so far: 40561.126182
Deduct 634 from 940 and we're left with 306.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3060, and continue the process.

Going ahead to step 15:
3060 divided by 317 is 9 with a remainder of 207.
Use 9 as the next digit of our solution. 
Result so far: 40561.1261829
If we take 2853 away from 3060, we end up with 207.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2070, and continue the process.

Let's proceed to step 16:
When dividing 2070 by 317, we get 6 with a remainder of 168.
The number 6 becomes the next digit in our result. 
Result so far: 40561.12618296
Deduct 1902 from 2070 and we're left with 168.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1680, and continue the process.

The final outcome is 40561.12618296, with a leftover of 1.68e-07.