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

Going ahead to step 1:
The number 398 fits into 4 0 times, leaving a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 398

Advancing to step 2:
398 goes into 40 0 times with a remainder of 40.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Fetch the next digit (2) from the dividend, attach it to 40 and continue: 402 / 398

On to step 3:
398 goes into 402 1 times with a remainder of 4.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtracting 398 from 402 leaves us with 4.
Take the next digit (8) from the dividend and append it to 4, then repeat: 48 / 398

Let's proceed to step 4:
398 goes into 48 0 times with a remainder of 48.
The number 0 becomes the next digit in our result. 
Result so far: 10.0
Subtracting 0 from 48 leaves us with 48.
Include the next digit (6) from the dividend after 48, then repeat: 486 / 398

Advancing to step 5:
398 can be fit into 486 1 times, resulting in a remainder of 88.
The next digit of our result is 1. 
Result so far: 101.0
Subtracting 398 from 486 leaves us with 88.
Include the next digit (9) from the dividend after 88, then repeat: 889 / 398

Going ahead to step 6:
398 can be fit into 889 2 times, resulting in a remainder of 93.
The next digit of our result is 2. 
Result so far: 1012.0
The remainder is 93 after subtracting 796 from 889.
Take the next digit (2) from the dividend and append it to 93, then repeat: 932 / 398

Let's proceed to step 7:
398 can be fit into 932 2 times, resulting in a remainder of 136.
Put 2 as the next digit of the answer. 
Result so far: 10122.0
If we subtract 796 from 932, we get 136.
Take the next digit (9) from the dividend and append it to 136, then repeat: 1369 / 398

On to step 8:
If we divide 1369 by 398, we get 3 and a remainder of 175.
Use 3 as the next digit of our solution. 
Result so far: 101223.0
Deduct 1194 from 1369 and we're left with 175.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1750, and continue the process.

On to step 9:
398 can be fit into 1750 4 times, resulting in a remainder of 158.
The number 4 becomes the next digit in our result. 
Result so far: 101223.4
If we subtract 1592 from 1750, we 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.

Step 10:
398 can be fit into 1580 3 times, resulting in a remainder of 386.
Write down 3 as next digit of the result. 
Result so far: 101223.43
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.

Let's proceed to step 11:
When dividing 3860 by 398, we get 9 with a remainder of 278.
Put 9 as the next digit of the answer. 
Result so far: 101223.439
Subtract 3582 from 3860 to get 278.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2780, and continue the process.

Moving on to step 12:
If we divide 2780 by 398, we get 6 and a remainder of 392.
Use 6 as the next digit of our solution. 
Result so far: 101223.4396
Subtracting 2388 from 2780 leaves us 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.

Advancing to step 13:
The number 398 fits into 3920 9 times, leaving a remainder of 338.
The number 9 becomes the next digit in our result. 
Result so far: 101223.43969
Deduct 3582 from 3920 and we're left with 338.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3380, and continue the process.

Advancing to step 14:
398 goes into 3380 8 times with a remainder of 196.
Use 8 as the next digit of our solution. 
Result so far: 101223.439698
Subtracting 3184 from 3380 leaves us with 196.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1960, and continue the process.

Advancing to step 15:
If we divide 1960 by 398, we get 4 and a remainder of 368.
Write down 4 as next digit of the result. 
Result so far: 101223.4396984
If we subtract 1592 from 1960, we get 368.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3680, and continue the process.

Moving on to step 16:
398 goes into 3680 9 times with a remainder of 98.
Put 9 as the next digit of the answer. 
Result so far: 101223.43969849
If we take 3582 away from 3680, we end up with 98.
Since there are no more digits in the dividend, we add a zero to the remainder making it 980, and continue the process.

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