Let's divide 399478 by 97
The aim is to understand the frequency of 97 in 399478.

On to step 1:
When dividing 3 by 97, we get 0 with a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 97

On to step 2:
97 goes into 39 0 times with a remainder of 39.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 39, we end up with 39.
Bring next digit (9) of the dividend behind the 39 and repeat the process: 399 / 97

On to step 3:
399 divided by 97 is 4 with a remainder of 11.
Write down 4 as next digit of the result. 
Result so far: 4.0
If we subtract 388 from 399, we get 11.
Bring next digit (4) of the dividend behind the 11 and repeat the process: 114 / 97

On to step 4:
97 can be fit into 114 1 times, resulting in a remainder of 17.
Put 1 as the next digit of the answer. 
Result so far: 41.0
Subtracting 97 from 114 leaves us with 17.
Bring next digit (7) of the dividend behind the 17 and repeat the process: 177 / 97

Advancing to step 5:
When dividing 177 by 97, we get 1 with a remainder of 80.
The number 1 becomes the next digit in our result. 
Result so far: 411.0
Deduct 97 from 177 and we're left with 80.
Take the next digit (8) from the dividend and append it to 80, then repeat: 808 / 97

Moving on to step 6:
97 goes into 808 8 times with a remainder of 32.
The number 8 becomes the next digit in our result. 
Result so far: 4118.0
Deduct 776 from 808 and we're left with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Step 7:
When dividing 320 by 97, we get 3 with a remainder of 29.
Record the quotient 3 as the next digit in the result. 
Result so far: 4118.3
Subtract 291 from 320 to get 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Step 8:
97 goes into 290 2 times with a remainder of 96.
The next digit of our result is 2. 
Result so far: 4118.32
Subtract 194 from 290 to get 96.
Since there are no more digits in the dividend, we add a zero to the remainder making it 960, and continue the process.

Going ahead to step 9:
If we divide 960 by 97, we get 9 and a remainder of 87.
Put 9 as the next digit of the answer. 
Result so far: 4118.329
Subtracting 873 from 960 leaves us with 87.
Since there are no more digits in the dividend, we add a zero to the remainder making it 870, and continue the process.

Step 10:
The number 97 fits into 870 8 times, leaving a remainder of 94.
Write down 8 as next digit of the result. 
Result so far: 4118.3298
If we subtract 776 from 870, we get 94.
Since there are no more digits in the dividend, we add a zero to the remainder making it 940, and continue the process.

Going ahead to step 11:
97 can be fit into 940 9 times, resulting in a remainder of 67.
The number 9 becomes the next digit in our result. 
Result so far: 4118.32989
The remainder is 67 after subtracting 873 from 940.
Since there are no more digits in the dividend, we add a zero to the remainder making it 670, and continue the process.

Moving on to step 12:
670 divided by 97 is 6 with a remainder of 88.
The next digit of our result is 6. 
Result so far: 4118.329896
Deduct 582 from 670 and we're left with 88.
Since there are no more digits in the dividend, we add a zero to the remainder making it 880, and continue the process.

Moving on to step 13:
The number 97 fits into 880 9 times, leaving a remainder of 7.
Write down 9 as next digit of the result. 
Result so far: 4118.3298969
Subtract 873 from 880 to 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.

On to step 14:
The number 97 fits into 70 0 times, leaving a remainder of 70.
The next digit of our result is 0. 
Result so far: 4118.3298969
If we subtract 0 from 70, we get 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 700, and continue the process.

Our division results in 4118.3298969 with a remaining 7e-08.