We look at the division of 31661597 by 398 
We want to figure out the number of times 31661597 can be divided by 398.

On to step 1:
398 goes into 3 0 times with a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Include the next digit (1) from the dividend after 3, then repeat: 31 / 398

Advancing to step 2:
The number 398 fits into 31 0 times, leaving a remainder of 31.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 31 to get 31.
Append the next digit (6) from the dividend to 31 and continue with: 316 / 398

On to step 3:
316 divided by 398 is 0 with a remainder of 316.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 316, we end up with 316.
Take the next digit (6) from the dividend and append it to 316, then repeat: 3166 / 398

On to step 4:
If we divide 3166 by 398, we get 7 and a remainder of 380.
Write down 7 as next digit of the result. 
Result so far: 7.0
The remainder is 380 after subtracting 2786 from 3166.
Fetch the next digit (1) from the dividend, attach it to 380 and continue: 3801 / 398

On to step 5:
3801 divided by 398 is 9 with a remainder of 219.
The next digit of our result is 9. 
Result so far: 79.0
If we subtract 3582 from 3801, we get 219.
Include the next digit (5) from the dividend after 219, then repeat: 2195 / 398

Going ahead to step 6:
When dividing 2195 by 398, we get 5 with a remainder of 205.
Put 5 as the next digit of the answer. 
Result so far: 795.0
Subtracting 1990 from 2195 leaves us with 205.
Include the next digit (9) from the dividend after 205, then repeat: 2059 / 398

Advancing to step 7:
2059 divided by 398 is 5 with a remainder of 69.
The number 5 becomes the next digit in our result. 
Result so far: 7955.0
If we subtract 1990 from 2059, we get 69.
Append the next digit (7) from the dividend to 69 and continue with: 697 / 398

Step 8:
The number 398 fits into 697 1 times, leaving a remainder of 299.
Put 1 as the next digit of the answer. 
Result so far: 79551.0
Subtract 398 from 697 to get 299.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2990, and continue the process.

Step 9:
398 can be fit into 2990 7 times, resulting in a remainder of 204.
The next digit of our result is 7. 
Result so far: 79551.7
Subtract 2786 from 2990 to get 204.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2040, and continue the process.

Step 10:
398 goes into 2040 5 times with a remainder of 50.
Put 5 as the next digit of the answer. 
Result so far: 79551.75
Subtracting 1990 from 2040 leaves us with 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

Moving on to step 11:
If we divide 500 by 398, we get 1 and a remainder of 102.
The next digit of our result is 1. 
Result so far: 79551.751
If we take 398 away from 500, we end up with 102.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1020, and continue the process.

Advancing to step 12:
The number 398 fits into 1020 2 times, leaving a remainder of 224.
The next digit of our result is 2. 
Result so far: 79551.7512
Subtracting 796 from 1020 leaves us with 224.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2240, and continue the process.

On to step 13:
398 can be fit into 2240 5 times, resulting in a remainder of 250.
Put 5 as the next digit of the answer. 
Result so far: 79551.75125
If we take 1990 away from 2240, we end up with 250.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2500, and continue the process.

Step 14:
When dividing 2500 by 398, we get 6 with a remainder of 112.
Write down 6 as next digit of the result. 
Result so far: 79551.751256
Subtract 2388 from 2500 to get 112.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1120, and continue the process.

Going ahead to step 15:
If we divide 1120 by 398, we get 2 and a remainder of 324.
Write down 2 as next digit of the result. 
Result so far: 79551.7512562
Deduct 796 from 1120 and we're left with 324.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3240, and continue the process.

Moving on to step 16:
398 goes into 3240 8 times with a remainder of 56.
The number 8 becomes the next digit in our result. 
Result so far: 79551.75125628
Subtracting 3184 from 3240 leaves us with 56.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

The final result is 79551.75125628 with a remainder of 5.6e-08.