We look at the division of 31979307 by 398 
The aim is to understand the frequency of 398 in 31979307.

Going ahead to step 1:
When dividing 3 by 398, we get 0 with a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Take the next digit (1) from the dividend and append it to 3, then repeat: 31 / 398

Going ahead to step 2:
398 can be fit into 31 0 times, resulting in a remainder of 31.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 31, we get 31.
Fetch the next digit (9) from the dividend, attach it to 31 and continue: 319 / 398

On to step 3:
When dividing 319 by 398, we get 0 with a remainder of 319.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 319 to get 319.
Fetch the next digit (7) from the dividend, attach it to 319 and continue: 3197 / 398

Going ahead to step 4:
398 can be fit into 3197 8 times, resulting in a remainder of 13.
Write down 8 as next digit of the result. 
Result so far: 8.0
If we take 3184 away from 3197, we end up with 13.
Grab the next digit (9) from the dividend, add it to 13, then carry on: 139 / 398

Moving on to step 5:
139 divided by 398 is 0 with a remainder of 139.
Write down 0 as next digit of the result. 
Result so far: 80.0
If we subtract 0 from 139, we get 139.
Fetch the next digit (3) from the dividend, attach it to 139 and continue: 1393 / 398

Advancing to step 6:
398 can be fit into 1393 3 times, resulting in a remainder of 199.
The number 3 becomes the next digit in our result. 
Result so far: 803.0
Subtract 1194 from 1393 to get 199.
Include the next digit (0) from the dividend after 199, then repeat: 1990 / 398

On to step 7:
398 can be fit into 1990 5 times, resulting in a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 8035.0
Subtracting 1990 from 1990 leaves us with 0.
Append the next digit (7) from the dividend to 0 and continue with: 7 / 398

On to step 8:
7 divided by 398 is 0 with a remainder of 7.
The number 0 becomes the next digit in our result. 
Result so far: 80350.0
If we subtract 0 from 7, we get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Advancing to step 9:
70 divided by 398 is 0 with a remainder of 70.
Put 0 as the next digit of the answer. 
Result so far: 80350.0
The remainder is 70 after subtracting 0 from 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 700, and continue the process.

Advancing to step 10:
The number 398 fits into 700 1 times, leaving a remainder of 302.
Write down 1 as next digit of the result. 
Result so far: 80350.01
Deduct 398 from 700 and we're left with 302.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3020, and continue the process.

On to step 11:
The number 398 fits into 3020 7 times, leaving a remainder of 234.
Record the quotient 7 as the next digit in the result. 
Result so far: 80350.017
Subtract 2786 from 3020 to get 234.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2340, and continue the process.

On to step 12:
If we divide 2340 by 398, we get 5 and a remainder of 350.
Use 5 as the next digit of our solution. 
Result so far: 80350.0175
The remainder is 350 after subtracting 1990 from 2340.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3500, and continue the process.

Step 13:
If we divide 3500 by 398, we get 8 and a remainder of 316.
Put 8 as the next digit of the answer. 
Result so far: 80350.01758
Subtracting 3184 from 3500 leaves us with 316.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3160, and continue the process.

On to step 14:
3160 divided by 398 is 7 with a remainder of 374.
Write down 7 as next digit of the result. 
Result so far: 80350.017587
The remainder is 374 after subtracting 2786 from 3160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3740, and continue the process.

Moving on to step 15:
If we divide 3740 by 398, we get 9 and a remainder of 158.
Record the quotient 9 as the next digit in the result. 
Result so far: 80350.0175879
Subtract 3582 from 3740 to get 158.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1580, and continue the process.

Moving on to step 16:
If we divide 1580 by 398, we get 3 and a remainder of 386.
The next digit of our result is 3. 
Result so far: 80350.01758793
The remainder is 386 after subtracting 1194 from 1580.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3860, and continue the process.

In conclusion, the division gives 80350.01758793 with a balance of 3.86e-07.