31158346 ÷ 397 
We want to divide 31158346 by 397.

Advancing to step 1:
397 can be fit into 3 0 times, resulting in a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Take the next digit (1) from the dividend and append it to 3, then repeat: 31 / 397

Step 2:
31 divided by 397 is 0 with a remainder of 31.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 31, we end up with 31.
Fetch the next digit (1) from the dividend, attach it to 31 and continue: 311 / 397

Moving on to step 3:
397 can be fit into 311 0 times, resulting in a remainder of 311.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 311 and we're left with 311.
Include the next digit (5) from the dividend after 311, then repeat: 3115 / 397

Moving on to step 4:
397 can be fit into 3115 7 times, resulting in a remainder of 336.
Use 7 as the next digit of our solution. 
Result so far: 7.0
Subtracting 2779 from 3115 leaves us with 336.
Fetch the next digit (8) from the dividend, attach it to 336 and continue: 3368 / 397

Let's proceed to step 5:
If we divide 3368 by 397, we get 8 and a remainder of 192.
Use 8 as the next digit of our solution. 
Result so far: 78.0
The remainder is 192 after subtracting 3176 from 3368.
Include the next digit (3) from the dividend after 192, then repeat: 1923 / 397

Advancing to step 6:
When dividing 1923 by 397, we get 4 with a remainder of 335.
The next digit of our result is 4. 
Result so far: 784.0
Subtract 1588 from 1923 to get 335.
Include the next digit (4) from the dividend after 335, then repeat: 3354 / 397

Advancing to step 7:
If we divide 3354 by 397, we get 8 and a remainder of 178.
The number 8 becomes the next digit in our result. 
Result so far: 7848.0
Subtract 3176 from 3354 to get 178.
Append the next digit (6) from the dividend to 178 and continue with: 1786 / 397

Moving on to step 8:
1786 divided by 397 is 4 with a remainder of 198.
Record the quotient 4 as the next digit in the result. 
Result so far: 78484.0
If we take 1588 away from 1786, we end up with 198.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1980, and continue the process.

Advancing to step 9:
If we divide 1980 by 397, we get 4 and a remainder of 392.
Write down 4 as next digit of the result. 
Result so far: 78484.4
The remainder is 392 after subtracting 1588 from 1980.
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 10:
The number 397 fits into 3920 9 times, leaving a remainder of 347.
Put 9 as the next digit of the answer. 
Result so far: 78484.49
Subtracting 3573 from 3920 leaves us with 347.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3470, and continue the process.

Advancing to step 11:
397 can be fit into 3470 8 times, resulting in a remainder of 294.
Write down 8 as next digit of the result. 
Result so far: 78484.498
The remainder is 294 after subtracting 3176 from 3470.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2940, and continue the process.

On to step 12:
2940 divided by 397 is 7 with a remainder of 161.
Write down 7 as next digit of the result. 
Result so far: 78484.4987
If we take 2779 away from 2940, we end up with 161.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1610, and continue the process.

Let's proceed to step 13:
397 goes into 1610 4 times with a remainder of 22.
The number 4 becomes the next digit in our result. 
Result so far: 78484.49874
The remainder is 22 after subtracting 1588 from 1610.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Advancing to step 14:
If we divide 220 by 397, we get 0 and a remainder of 220.
The next digit of our result is 0. 
Result so far: 78484.49874
Subtracting 0 from 220 leaves us with 220.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2200, and continue the process.

Moving on to step 15:
The number 397 fits into 2200 5 times, leaving a remainder of 215.
Put 5 as the next digit of the answer. 
Result so far: 78484.4987405
The remainder is 215 after subtracting 1985 from 2200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2150, and continue the process.

On to step 16:
If we divide 2150 by 397, we get 5 and a remainder of 165.
The number 5 becomes the next digit in our result. 
Result so far: 78484.49874055
If we subtract 1985 from 2150, we get 165.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1650, and continue the process.

The quotient of the division is 78484.49874055, and the remainder is 1.65e-07.