We look at the division of 874058 by 47 
The aim is to understand the frequency of 47 in 874058.

On to step 1:
When dividing 8 by 47, we get 0 with a remainder of 8.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 8 after subtracting 0 from 8.
Append the next digit (7) from the dividend to 8 and continue with: 87 / 47

Moving on to step 2:
47 can be fit into 87 1 times, resulting in a remainder of 40.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Deduct 47 from 87 and we're left with 40.
Fetch the next digit (4) from the dividend, attach it to 40 and continue: 404 / 47

Let's proceed to step 3:
When dividing 404 by 47, we get 8 with a remainder of 28.
The next digit of our result is 8. 
Result so far: 18.0
Subtracting 376 from 404 leaves us with 28.
Fetch the next digit (0) from the dividend, attach it to 28 and continue: 280 / 47

On to step 4:
280 divided by 47 is 5 with a remainder of 45.
Write down 5 as next digit of the result. 
Result so far: 185.0
Deduct 235 from 280 and we're left with 45.
Grab the next digit (5) from the dividend, add it to 45, then carry on: 455 / 47

Going ahead to step 5:
455 divided by 47 is 9 with a remainder of 32.
The next digit of our result is 9. 
Result so far: 1859.0
Deduct 423 from 455 and we're left with 32.
Take the next digit (8) from the dividend and append it to 32, then repeat: 328 / 47

Step 6:
When dividing 328 by 47, we get 6 with a remainder of 46.
Record the quotient 6 as the next digit in the result. 
Result so far: 18596.0
Subtract 282 from 328 to get 46.
Since there are no more digits in the dividend, we add a zero to the remainder making it 460, and continue the process.

Moving on to step 7:
When dividing 460 by 47, we get 9 with a remainder of 37.
The next digit of our result is 9. 
Result so far: 18596.9
If we take 423 away from 460, we end up with 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Step 8:
If we divide 370 by 47, we get 7 and a remainder of 41.
Record the quotient 7 as the next digit in the result. 
Result so far: 18596.97
If we take 329 away from 370, we end up with 41.
Since there are no more digits in the dividend, we add a zero to the remainder making it 410, and continue the process.

Advancing to step 9:
The number 47 fits into 410 8 times, leaving a remainder of 34.
Put 8 as the next digit of the answer. 
Result so far: 18596.978
If we subtract 376 from 410, we get 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Advancing to step 10:
When dividing 340 by 47, we get 7 with a remainder of 11.
The number 7 becomes the next digit in our result. 
Result so far: 18596.9787
Subtract 329 from 340 to get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Step 11:
47 goes into 110 2 times with a remainder of 16.
The next digit of our result is 2. 
Result so far: 18596.97872
The remainder is 16 after subtracting 94 from 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

On to step 12:
47 can be fit into 160 3 times, resulting in a remainder of 19.
Use 3 as the next digit of our solution. 
Result so far: 18596.978723
Subtracting 141 from 160 leaves us with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Step 13:
47 can be fit into 190 4 times, resulting in a remainder of 2.
Write down 4 as next digit of the result. 
Result so far: 18596.9787234
Subtract 188 from 190 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 14:
The number 47 fits into 20 0 times, leaving a remainder of 20.
The number 0 becomes the next digit in our result. 
Result so far: 18596.9787234
The remainder is 20 after subtracting 0 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Our division results in 18596.9787234 with a remaining 2e-08.