We look at the division of 398871 by 247 
The aim is to understand the frequency of 247 in 398871.

Moving on to step 1:
247 can be fit into 3 0 times, resulting in a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 247

Let's proceed to step 2:
39 divided by 247 is 0 with a remainder of 39.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 39 leaves us with 39.
Include the next digit (8) from the dividend after 39, then repeat: 398 / 247

Moving on to step 3:
The number 247 fits into 398 1 times, leaving a remainder of 151.
The next digit of our result is 1. 
Result so far: 1.0
Subtract 247 from 398 to get 151.
Grab the next digit (8) from the dividend, add it to 151, then carry on: 1518 / 247

Step 4:
The number 247 fits into 1518 6 times, leaving a remainder of 36.
Put 6 as the next digit of the answer. 
Result so far: 16.0
The remainder is 36 after subtracting 1482 from 1518.
Bring next digit (7) of the dividend behind the 36 and repeat the process: 367 / 247

Advancing to step 5:
367 divided by 247 is 1 with a remainder of 120.
Use 1 as the next digit of our solution. 
Result so far: 161.0
Subtracting 247 from 367 leaves us with 120.
Take the next digit (1) from the dividend and append it to 120, then repeat: 1201 / 247

Step 6:
247 can be fit into 1201 4 times, resulting in a remainder of 213.
The next digit of our result is 4. 
Result so far: 1614.0
The remainder is 213 after subtracting 988 from 1201.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2130, and continue the process.

Let's proceed to step 7:
247 can be fit into 2130 8 times, resulting in a remainder of 154.
Use 8 as the next digit of our solution. 
Result so far: 1614.8
Subtracting 1976 from 2130 leaves us with 154.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1540, and continue the process.

On to step 8:
The number 247 fits into 1540 6 times, leaving a remainder of 58.
Put 6 as the next digit of the answer. 
Result so far: 1614.86
Deduct 1482 from 1540 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.

Step 9:
247 goes into 580 2 times with a remainder of 86.
Put 2 as the next digit of the answer. 
Result so far: 1614.862
Deduct 494 from 580 and we're left with 86.
Since there are no more digits in the dividend, we add a zero to the remainder making it 860, and continue the process.

Going ahead to step 10:
If we divide 860 by 247, we get 3 and a remainder of 119.
Record the quotient 3 as the next digit in the result. 
Result so far: 1614.8623
Subtracting 741 from 860 leaves us with 119.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1190, and continue the process.

On to step 11:
If we divide 1190 by 247, we get 4 and a remainder of 202.
Record the quotient 4 as the next digit in the result. 
Result so far: 1614.86234
Subtracting 988 from 1190 leaves us with 202.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2020, and continue the process.

Going ahead to step 12:
2020 divided by 247 is 8 with a remainder of 44.
Record the quotient 8 as the next digit in the result. 
Result so far: 1614.862348
Deduct 1976 from 2020 and we're left with 44.
Since there are no more digits in the dividend, we add a zero to the remainder making it 440, and continue the process.

Advancing to step 13:
247 goes into 440 1 times with a remainder of 193.
The number 1 becomes the next digit in our result. 
Result so far: 1614.8623481
Deduct 247 from 440 and we're left with 193.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1930, and continue the process.

Advancing to step 14:
The number 247 fits into 1930 7 times, leaving a remainder of 201.
Write down 7 as next digit of the result. 
Result so far: 1614.86234817
Subtracting 1729 from 1930 leaves us with 201.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2010, and continue the process.

After the division, we end up with 1614.86234817 and a remainder of 2.01e-07.