We look at the division of 31871489 by 999 
We want to divide 31871489 by 999.

Moving on to step 1:
When dividing 3 by 999, we get 0 with a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Fetch the next digit (1) from the dividend, attach it to 3 and continue: 31 / 999

Advancing to step 2:
If we divide 31 by 999, we get 0 and a remainder of 31.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 31 after subtracting 0 from 31.
Append the next digit (8) from the dividend to 31 and continue with: 318 / 999

Let's proceed to step 3:
999 can be fit into 318 0 times, resulting in a remainder of 318.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 318 leaves us with 318.
Append the next digit (7) from the dividend to 318 and continue with: 3187 / 999

Step 4:
If we divide 3187 by 999, we get 3 and a remainder of 190.
The next digit of our result is 3. 
Result so far: 3.0
The remainder is 190 after subtracting 2997 from 3187.
Append the next digit (1) from the dividend to 190 and continue with: 1901 / 999

On to step 5:
1901 divided by 999 is 1 with a remainder of 902.
The number 1 becomes the next digit in our result. 
Result so far: 31.0
Subtracting 999 from 1901 leaves us with 902.
Bring next digit (4) of the dividend behind the 902 and repeat the process: 9024 / 999

Let's proceed to step 6:
999 goes into 9024 9 times with a remainder of 33.
Put 9 as the next digit of the answer. 
Result so far: 319.0
Deduct 8991 from 9024 and we're left with 33.
Grab the next digit (8) from the dividend, add it to 33, then carry on: 338 / 999

Let's proceed to step 7:
338 divided by 999 is 0 with a remainder of 338.
The next digit of our result is 0. 
Result so far: 3190.0
The remainder is 338 after subtracting 0 from 338.
Append the next digit (9) from the dividend to 338 and continue with: 3389 / 999

On to step 8:
3389 divided by 999 is 3 with a remainder of 392.
Put 3 as the next digit of the answer. 
Result so far: 31903.0
Subtract 2997 from 3389 to get 392.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3920, and continue the process.

Let's proceed to step 9:
If we divide 3920 by 999, we get 3 and a remainder of 923.
Write down 3 as next digit of the result. 
Result so far: 31903.3
The remainder is 923 after subtracting 2997 from 3920.
Since there are no more digits in the dividend, we add a zero to the remainder making it 9230, and continue the process.

Let's proceed to step 10:
If we divide 9230 by 999, we get 9 and a remainder of 239.
The number 9 becomes the next digit in our result. 
Result so far: 31903.39
Deduct 8991 from 9230 and we're left with 239.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2390, and continue the process.

On to step 11:
2390 divided by 999 is 2 with a remainder of 392.
Record the quotient 2 as the next digit in the result. 
Result so far: 31903.392
If we subtract 1998 from 2390, we get 392.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3920, and continue the process.

Advancing to step 12:
999 can be fit into 3920 3 times, resulting in a remainder of 923.
Put 3 as the next digit of the answer. 
Result so far: 31903.3923
If we subtract 2997 from 3920, we get 923.
Since there are no more digits in the dividend, we add a zero to the remainder making it 9230, and continue the process.

Advancing to step 13:
When dividing 9230 by 999, we get 9 with a remainder of 239.
Write down 9 as next digit of the result. 
Result so far: 31903.39239
Subtract 8991 from 9230 to get 239.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2390, and continue the process.

Step 14:
The number 999 fits into 2390 2 times, leaving a remainder of 392.
The next digit of our result is 2. 
Result so far: 31903.392392
If we take 1998 away from 2390, we end up with 392.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3920, and continue the process.

Let's proceed to step 15:
The number 999 fits into 3920 3 times, leaving a remainder of 923.
Put 3 as the next digit of the answer. 
Result so far: 31903.3923923
Subtract 2997 from 3920 to get 923.
Since there are no more digits in the dividend, we add a zero to the remainder making it 9230, and continue the process.

On to step 16:
999 goes into 9230 9 times with a remainder of 239.
Write down 9 as next digit of the result. 
Result so far: 31903.39239239
If we subtract 8991 from 9230, we get 239.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2390, and continue the process.

The final outcome is 31903.39239239, with a leftover of 2.39e-07.