Let's divide 12577059 by 313
Our goal is to divide 12577059 by 313.

Step 1:
If we divide 1 by 313, we get 0 and a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Grab the next digit (2) from the dividend, add it to 1, then carry on: 12 / 313

On to step 2:
When dividing 12 by 313, we get 0 with a remainder of 12.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 12 leaves us with 12.
Take the next digit (5) from the dividend and append it to 12, then repeat: 125 / 313

Moving on to step 3:
When dividing 125 by 313, we get 0 with a remainder of 125.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 125, we end up with 125.
Append the next digit (7) from the dividend to 125 and continue with: 1257 / 313

Advancing to step 4:
313 goes into 1257 4 times with a remainder of 5.
Use 4 as the next digit of our solution. 
Result so far: 4.0
Subtract 1252 from 1257 to get 5.
Append the next digit (7) from the dividend to 5 and continue with: 57 / 313

Step 5:
If we divide 57 by 313, we get 0 and a remainder of 57.
The number 0 becomes the next digit in our result. 
Result so far: 40.0
The remainder is 57 after subtracting 0 from 57.
Bring next digit (0) of the dividend behind the 57 and repeat the process: 570 / 313

Moving on to step 6:
570 divided by 313 is 1 with a remainder of 257.
Use 1 as the next digit of our solution. 
Result so far: 401.0
If we subtract 313 from 570, we get 257.
Include the next digit (5) from the dividend after 257, then repeat: 2575 / 313

Let's proceed to step 7:
If we divide 2575 by 313, we get 8 and a remainder of 71.
Record the quotient 8 as the next digit in the result. 
Result so far: 4018.0
The remainder is 71 after subtracting 2504 from 2575.
Grab the next digit (9) from the dividend, add it to 71, then carry on: 719 / 313

Let's proceed to step 8:
The number 313 fits into 719 2 times, leaving a remainder of 93.
Put 2 as the next digit of the answer. 
Result so far: 40182.0
The remainder is 93 after subtracting 626 from 719.
Since there are no more digits in the dividend, we add a zero to the remainder making it 930, and continue the process.

Let's proceed to step 9:
The number 313 fits into 930 2 times, leaving a remainder of 304.
Record the quotient 2 as the next digit in the result. 
Result so far: 40182.2
Subtract 626 from 930 to get 304.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3040, and continue the process.

Advancing to step 10:
313 goes into 3040 9 times with a remainder of 223.
Write down 9 as next digit of the result. 
Result so far: 40182.29
The remainder is 223 after subtracting 2817 from 3040.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2230, and continue the process.

Advancing to step 11:
313 goes into 2230 7 times with a remainder of 39.
Put 7 as the next digit of the answer. 
Result so far: 40182.297
Subtracting 2191 from 2230 leaves us with 39.
Since there are no more digits in the dividend, we add a zero to the remainder making it 390, and continue the process.

Moving on to step 12:
390 divided by 313 is 1 with a remainder of 77.
Record the quotient 1 as the next digit in the result. 
Result so far: 40182.2971
The remainder is 77 after subtracting 313 from 390.
Since there are no more digits in the dividend, we add a zero to the remainder making it 770, and continue the process.

Advancing to step 13:
When dividing 770 by 313, we get 2 with a remainder of 144.
The number 2 becomes the next digit in our result. 
Result so far: 40182.29712
If we take 626 away from 770, we end up with 144.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1440, and continue the process.

On to step 14:
If we divide 1440 by 313, we get 4 and a remainder of 188.
Write down 4 as next digit of the result. 
Result so far: 40182.297124
The remainder is 188 after subtracting 1252 from 1440.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1880, and continue the process.

Advancing to step 15:
313 goes into 1880 6 times with a remainder of 2.
Record the quotient 6 as the next digit in the result. 
Result so far: 40182.2971246
The remainder is 2 after subtracting 1878 from 1880.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 16:
The number 313 fits into 20 0 times, leaving a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 40182.2971246
If we take 0 away from 20, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

The final outcome is 40182.2971246, with a leftover of 2e-08.