Let's divide 31341314 by 397
We're looking to find how many times 397 goes into 31341314.

Going ahead to step 1:
397 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
Deduct 0 from 3 and we're left with 3.
Fetch the next digit (1) from the dividend, attach it to 3 and continue: 31 / 397

Step 2:
If we divide 31 by 397, we get 0 and a remainder of 31.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 31 to get 31.
Take the next digit (3) from the dividend and append it to 31, then repeat: 313 / 397

Advancing to step 3:
313 divided by 397 is 0 with a remainder of 313.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 313 to get 313.
Append the next digit (4) from the dividend to 313 and continue with: 3134 / 397

Moving on to step 4:
If we divide 3134 by 397, we get 7 and a remainder of 355.
The number 7 becomes the next digit in our result. 
Result so far: 7.0
The remainder is 355 after subtracting 2779 from 3134.
Include the next digit (1) from the dividend after 355, then repeat: 3551 / 397

On to step 5:
When dividing 3551 by 397, we get 8 with a remainder of 375.
Write down 8 as next digit of the result. 
Result so far: 78.0
Subtracting 3176 from 3551 leaves us with 375.
Append the next digit (3) from the dividend to 375 and continue with: 3753 / 397

On to step 6:
When dividing 3753 by 397, we get 9 with a remainder of 180.
The next digit of our result is 9. 
Result so far: 789.0
If we subtract 3573 from 3753, we get 180.
Include the next digit (1) from the dividend after 180, then repeat: 1801 / 397

Moving on to step 7:
1801 divided by 397 is 4 with a remainder of 213.
Put 4 as the next digit of the answer. 
Result so far: 7894.0
Deduct 1588 from 1801 and we're left with 213.
Grab the next digit (4) from the dividend, add it to 213, then carry on: 2134 / 397

Step 8:
2134 divided by 397 is 5 with a remainder of 149.
Record the quotient 5 as the next digit in the result. 
Result so far: 78945.0
If we subtract 1985 from 2134, we get 149.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1490, and continue the process.

Let's proceed to step 9:
1490 divided by 397 is 3 with a remainder of 299.
The next digit of our result is 3. 
Result so far: 78945.3
Deduct 1191 from 1490 and we're left with 299.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2990, and continue the process.

Going ahead to step 10:
397 goes into 2990 7 times with a remainder of 211.
The number 7 becomes the next digit in our result. 
Result so far: 78945.37
If we take 2779 away from 2990, we end up with 211.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2110, and continue the process.

Advancing to step 11:
The number 397 fits into 2110 5 times, leaving a remainder of 125.
Write down 5 as next digit of the result. 
Result so far: 78945.375
If we subtract 1985 from 2110, we get 125.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1250, and continue the process.

Advancing to step 12:
1250 divided by 397 is 3 with a remainder of 59.
The number 3 becomes the next digit in our result. 
Result so far: 78945.3753
If we subtract 1191 from 1250, we get 59.
Since there are no more digits in the dividend, we add a zero to the remainder making it 590, and continue the process.

Step 13:
397 goes into 590 1 times with a remainder of 193.
Use 1 as the next digit of our solution. 
Result so far: 78945.37531
The remainder is 193 after subtracting 397 from 590.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1930, and continue the process.

Step 14:
The number 397 fits into 1930 4 times, leaving a remainder of 342.
Put 4 as the next digit of the answer. 
Result so far: 78945.375314
Deduct 1588 from 1930 and we're left with 342.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3420, and continue the process.

Advancing to step 15:
When dividing 3420 by 397, we get 8 with a remainder of 244.
The next digit of our result is 8. 
Result so far: 78945.3753148
Deduct 3176 from 3420 and we're left with 244.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2440, and continue the process.

Let's proceed to step 16:
2440 divided by 397 is 6 with a remainder of 58.
Use 6 as the next digit of our solution. 
Result so far: 78945.37531486
Deduct 2382 from 2440 and we're left with 58.
Since there are no more digits in the dividend, we add a zero to the remainder making it 580, and continue the process.

After the division, we end up with 78945.37531486 and a remainder of 5.8e-08.