Let's divide 476596 by 31
We want to divide 476596 by 31.

Advancing to step 1:
If we divide 4 by 31, we get 0 and a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Fetch the next digit (7) from the dividend, attach it to 4 and continue: 47 / 31

Moving on to step 2:
31 can be fit into 47 1 times, resulting in a remainder of 16.
The next digit of our result is 1. 
Result so far: 1.0
If we subtract 31 from 47, we get 16.
Append the next digit (6) from the dividend to 16 and continue with: 166 / 31

Moving on to step 3:
31 can be fit into 166 5 times, resulting in a remainder of 11.
Put 5 as the next digit of the answer. 
Result so far: 15.0
Deduct 155 from 166 and we're left with 11.
Append the next digit (5) from the dividend to 11 and continue with: 115 / 31

On to step 4:
31 goes into 115 3 times with a remainder of 22.
The next digit of our result is 3. 
Result so far: 153.0
Subtract 93 from 115 to get 22.
Bring next digit (9) of the dividend behind the 22 and repeat the process: 229 / 31

Step 5:
When dividing 229 by 31, we get 7 with a remainder of 12.
Write down 7 as next digit of the result. 
Result so far: 1537.0
Deduct 217 from 229 and we're left with 12.
Take the next digit (6) from the dividend and append it to 12, then repeat: 126 / 31

On to step 6:
If we divide 126 by 31, we get 4 and a remainder of 2.
Put 4 as the next digit of the answer. 
Result so far: 15374.0
Deduct 124 from 126 and we're left with 2.
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 7:
20 divided by 31 is 0 with a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 15374.0
Subtracting 0 from 20 leaves us 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.

Step 8:
The number 31 fits into 200 6 times, leaving a remainder of 14.
Use 6 as the next digit of our solution. 
Result so far: 15374.06
Subtracting 186 from 200 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

On to step 9:
31 goes into 140 4 times with a remainder of 16.
Record the quotient 4 as the next digit in the result. 
Result so far: 15374.064
The remainder is 16 after subtracting 124 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Let's proceed to step 10:
When dividing 160 by 31, we get 5 with a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 15374.0645
Deduct 155 from 160 and we're left with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Let's proceed to step 11:
When dividing 50 by 31, we get 1 with a remainder of 19.
Write down 1 as next digit of the result. 
Result so far: 15374.06451
Subtract 31 from 50 to get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Going ahead to step 12:
When dividing 190 by 31, we get 6 with a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 15374.064516
Subtract 186 from 190 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 13:
If we divide 40 by 31, we get 1 and a remainder of 9.
Use 1 as the next digit of our solution. 
Result so far: 15374.0645161
Subtract 31 from 40 to get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

On to step 14:
31 can be fit into 90 2 times, resulting in a remainder of 28.
Use 2 as the next digit of our solution. 
Result so far: 15374.06451612
If we subtract 62 from 90, 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.

The final outcome is 15374.06451612, with a leftover of 2.8e-08.