Let's divide 366715 by 31
Let's see how many times 31 fits into 366715.

On to step 1:
31 goes into 3 0 times with a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Append the next digit (6) from the dividend to 3 and continue with: 36 / 31

Going ahead to step 2:
When dividing 36 by 31, we get 1 with a remainder of 5.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we subtract 31 from 36, we get 5.
Grab the next digit (6) from the dividend, add it to 5, then carry on: 56 / 31

Step 3:
56 divided by 31 is 1 with a remainder of 25.
Write down 1 as next digit of the result. 
Result so far: 11.0
The remainder is 25 after subtracting 31 from 56.
Fetch the next digit (7) from the dividend, attach it to 25 and continue: 257 / 31

Going ahead to step 4:
257 divided by 31 is 8 with a remainder of 9.
The next digit of our result is 8. 
Result so far: 118.0
If we subtract 248 from 257, we get 9.
Take the next digit (1) from the dividend and append it to 9, then repeat: 91 / 31

Advancing to step 5:
The number 31 fits into 91 2 times, leaving a remainder of 29.
Use 2 as the next digit of our solution. 
Result so far: 1182.0
If we take 62 away from 91, we end up with 29.
Include the next digit (5) from the dividend after 29, then repeat: 295 / 31

Going ahead to step 6:
If we divide 295 by 31, we get 9 and a remainder of 16.
The next digit of our result is 9. 
Result so far: 11829.0
The remainder is 16 after subtracting 279 from 295.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Going ahead to step 7:
31 can be fit into 160 5 times, resulting in a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 11829.5
The remainder is 5 after subtracting 155 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Advancing to step 8:
The number 31 fits into 50 1 times, leaving a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 11829.51
The remainder is 19 after subtracting 31 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Moving on to step 9:
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: 11829.516
Deduct 186 from 190 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Advancing to step 10:
31 goes into 40 1 times with a remainder of 9.
The number 1 becomes the next digit in our result. 
Result so far: 11829.5161
The remainder is 9 after subtracting 31 from 40.
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 11:
31 can be fit into 90 2 times, resulting in a remainder of 28.
Write down 2 as next digit of the result. 
Result so far: 11829.51612
The remainder is 28 after subtracting 62 from 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Let's proceed to step 12:
When dividing 280 by 31, we get 9 with a remainder of 1.
The number 9 becomes the next digit in our result. 
Result so far: 11829.516129
Subtract 279 from 280 to get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 13:
If we divide 10 by 31, we get 0 and a remainder of 10.
The next digit of our result is 0. 
Result so far: 11829.516129
Deduct 0 from 10 and we're left with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Moving on to step 14:
31 can be fit into 100 3 times, resulting in a remainder of 7.
Put 3 as the next digit of the answer. 
Result so far: 11829.51612903
If we subtract 93 from 100, we get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Our division results in 11829.51612903 with a remaining 7e-09.