We divide 317998 by 31
We want to figure out the number of times 317998 can be divided by 31.

Moving on to step 1:
31 goes into 3 0 times with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Fetch the next digit (1) from the dividend, attach it to 3 and continue: 31 / 31

Going ahead to step 2:
31 can be fit into 31 1 times, resulting in a remainder of 0.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Deduct 31 from 31 and we're left with 0.
Grab the next digit (7) from the dividend, add it to 0, then carry on: 7 / 31

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

Going ahead to step 4:
31 goes into 79 2 times with a remainder of 17.
The next digit of our result is 2. 
Result so far: 102.0
If we take 62 away from 79, we end up with 17.
Bring next digit (9) of the dividend behind the 17 and repeat the process: 179 / 31

Let's proceed to step 5:
31 can be fit into 179 5 times, resulting in a remainder of 24.
Write down 5 as next digit of the result. 
Result so far: 1025.0
Subtract 155 from 179 to get 24.
Grab the next digit (8) from the dividend, add it to 24, then carry on: 248 / 31

Step 6:
31 goes into 248 8 times with a remainder of 0.
Put 8 as the next digit of the answer. 
Result so far: 10258.0
Subtract 248 from 248 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 7:
0 divided by 31 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 10258.0
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 8:
The number 31 fits into 0 0 times, leaving a remainder of 0.
The next digit of our result is 0. 
Result so far: 10258.0
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The quotient of the division is 10258.0, and the remainder is 0.0.