31062586 ÷ 397 
We want to divide 31062586 by 397.

Advancing to step 1:
When dividing 3 by 397, we get 0 with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Grab the next digit (1) from the dividend, add it to 3, then carry on: 31 / 397

Step 2:
31 divided by 397 is 0 with a remainder of 31.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 31 after subtracting 0 from 31.
Take the next digit (0) from the dividend and append it to 31, then repeat: 310 / 397

On to step 3:
If we divide 310 by 397, we get 0 and a remainder of 310.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 310, we end up with 310.
Grab the next digit (6) from the dividend, add it to 310, then carry on: 3106 / 397

Step 4:
The number 397 fits into 3106 7 times, leaving a remainder of 327.
Put 7 as the next digit of the answer. 
Result so far: 7.0
If we take 2779 away from 3106, we end up with 327.
Take the next digit (2) from the dividend and append it to 327, then repeat: 3272 / 397

Advancing to step 5:
The number 397 fits into 3272 8 times, leaving a remainder of 96.
The number 8 becomes the next digit in our result. 
Result so far: 78.0
Subtracting 3176 from 3272 leaves us with 96.
Take the next digit (5) from the dividend and append it to 96, then repeat: 965 / 397

Let's proceed to step 6:
The number 397 fits into 965 2 times, leaving a remainder of 171.
The number 2 becomes the next digit in our result. 
Result so far: 782.0
The remainder is 171 after subtracting 794 from 965.
Take the next digit (8) from the dividend and append it to 171, then repeat: 1718 / 397

Advancing to step 7:
397 can be fit into 1718 4 times, resulting in a remainder of 130.
The number 4 becomes the next digit in our result. 
Result so far: 7824.0
The remainder is 130 after subtracting 1588 from 1718.
Append the next digit (6) from the dividend to 130 and continue with: 1306 / 397

Advancing to step 8:
If we divide 1306 by 397, we get 3 and a remainder of 115.
The number 3 becomes the next digit in our result. 
Result so far: 78243.0
If we subtract 1191 from 1306, we get 115.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1150, and continue the process.

Advancing to step 9:
The number 397 fits into 1150 2 times, leaving a remainder of 356.
Put 2 as the next digit of the answer. 
Result so far: 78243.2
If we take 794 away from 1150, we end up with 356.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3560, and continue the process.

Step 10:
397 can be fit into 3560 8 times, resulting in a remainder of 384.
The number 8 becomes the next digit in our result. 
Result so far: 78243.28
Subtract 3176 from 3560 to get 384.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3840, and continue the process.

Going ahead to step 11:
397 can be fit into 3840 9 times, resulting in a remainder of 267.
Put 9 as the next digit of the answer. 
Result so far: 78243.289
Deduct 3573 from 3840 and we're left with 267.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2670, and continue the process.

On to step 12:
397 can be fit into 2670 6 times, resulting in a remainder of 288.
Put 6 as the next digit of the answer. 
Result so far: 78243.2896
Subtract 2382 from 2670 to get 288.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2880, and continue the process.

Advancing to step 13:
397 goes into 2880 7 times with a remainder of 101.
Use 7 as the next digit of our solution. 
Result so far: 78243.28967
If we subtract 2779 from 2880, we get 101.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1010, and continue the process.

Going ahead to step 14:
When dividing 1010 by 397, we get 2 with a remainder of 216.
Use 2 as the next digit of our solution. 
Result so far: 78243.289672
Subtract 794 from 1010 to get 216.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2160, and continue the process.

Let's proceed to step 15:
397 goes into 2160 5 times with a remainder of 175.
The number 5 becomes the next digit in our result. 
Result so far: 78243.2896725
If we subtract 1985 from 2160, we get 175.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1750, and continue the process.

Advancing to step 16:
1750 divided by 397 is 4 with a remainder of 162.
The number 4 becomes the next digit in our result. 
Result so far: 78243.28967254
If we take 1588 away from 1750, we end up with 162.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1620, and continue the process.

The final result is 78243.28967254 with a remainder of 1.62e-07.