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

Moving on to step 1:
If we divide 3 by 998, we get 0 and a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Grab the next digit (1) from the dividend, add it to 3, then carry on: 31 / 998

Going ahead to step 2:
If we divide 31 by 998, we get 0 and a remainder of 31.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 31 leaves us with 31.
Bring next digit (9) of the dividend behind the 31 and repeat the process: 319 / 998

Moving on to step 3:
319 divided by 998 is 0 with a remainder of 319.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 319 and we're left with 319.
Bring next digit (1) of the dividend behind the 319 and repeat the process: 3191 / 998

Going ahead to step 4:
When dividing 3191 by 998, we get 3 with a remainder of 197.
The number 3 becomes the next digit in our result. 
Result so far: 3.0
Subtracting 2994 from 3191 leaves us with 197.
Bring next digit (7) of the dividend behind the 197 and repeat the process: 1977 / 998

Advancing to step 5:
If we divide 1977 by 998, we get 1 and a remainder of 979.
Use 1 as the next digit of our solution. 
Result so far: 31.0
Deduct 998 from 1977 and we're left with 979.
Fetch the next digit (1) from the dividend, attach it to 979 and continue: 9791 / 998

Going ahead to step 6:
9791 divided by 998 is 9 with a remainder of 809.
Use 9 as the next digit of our solution. 
Result so far: 319.0
Subtracting 8982 from 9791 leaves us with 809.
Include the next digit (6) from the dividend after 809, then repeat: 8096 / 998

Advancing to step 7:
998 can be fit into 8096 8 times, resulting in a remainder of 112.
Use 8 as the next digit of our solution. 
Result so far: 3198.0
If we take 7984 away from 8096, we end up with 112.
Include the next digit (6) from the dividend after 112, then repeat: 1126 / 998

Going ahead to step 8:
998 goes into 1126 1 times with a remainder of 128.
Put 1 as the next digit of the answer. 
Result so far: 31981.0
Subtract 998 from 1126 to get 128.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1280, and continue the process.

Going ahead to step 9:
If we divide 1280 by 998, we get 1 and a remainder of 282.
Use 1 as the next digit of our solution. 
Result so far: 31981.1
If we subtract 998 from 1280, we get 282.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2820, and continue the process.

Advancing to step 10:
2820 divided by 998 is 2 with a remainder of 824.
The number 2 becomes the next digit in our result. 
Result so far: 31981.12
Deduct 1996 from 2820 and we're left with 824.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8240, and continue the process.

On to step 11:
The number 998 fits into 8240 8 times, leaving a remainder of 256.
Write down 8 as next digit of the result. 
Result so far: 31981.128
Subtracting 7984 from 8240 leaves us with 256.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2560, and continue the process.

On to step 12:
The number 998 fits into 2560 2 times, leaving a remainder of 564.
Put 2 as the next digit of the answer. 
Result so far: 31981.1282
Deduct 1996 from 2560 and we're left with 564.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5640, and continue the process.

Going ahead to step 13:
The number 998 fits into 5640 5 times, leaving a remainder of 650.
Use 5 as the next digit of our solution. 
Result so far: 31981.12825
The remainder is 650 after subtracting 4990 from 5640.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6500, and continue the process.

Step 14:
When dividing 6500 by 998, we get 6 with a remainder of 512.
Use 6 as the next digit of our solution. 
Result so far: 31981.128256
Subtract 5988 from 6500 to get 512.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5120, and continue the process.

On to step 15:
5120 divided by 998 is 5 with a remainder of 130.
The next digit of our result is 5. 
Result so far: 31981.1282565
Subtracting 4990 from 5120 leaves us with 130.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1300, and continue the process.

On to step 16:
When dividing 1300 by 998, we get 1 with a remainder of 302.
The next digit of our result is 1. 
Result so far: 31981.12825651
Subtracting 998 from 1300 leaves us with 302.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3020, and continue the process.

The final outcome is 31981.12825651, with a leftover of 3.02e-07.