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

Moving on to step 1:
If we divide 8 by 47, we get 0 and a remainder of 8.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 8, we end up with 8.
Take the next digit (4) from the dividend and append it to 8, then repeat: 84 / 47

Moving on to step 2:
The number 47 fits into 84 1 times, leaving a remainder of 37.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Deduct 47 from 84 and we're left with 37.
Bring next digit (0) of the dividend behind the 37 and repeat the process: 370 / 47

On to step 3:
When dividing 370 by 47, we get 7 with a remainder of 41.
Record the quotient 7 as the next digit in the result. 
Result so far: 17.0
The remainder is 41 after subtracting 329 from 370.
Bring next digit (5) of the dividend behind the 41 and repeat the process: 415 / 47

On to step 4:
415 divided by 47 is 8 with a remainder of 39.
The next digit of our result is 8. 
Result so far: 178.0
Deduct 376 from 415 and we're left with 39.
Take the next digit (0) from the dividend and append it to 39, then repeat: 390 / 47

Going ahead to step 5:
390 divided by 47 is 8 with a remainder of 14.
Write down 8 as next digit of the result. 
Result so far: 1788.0
Subtract 376 from 390 to get 14.
Fetch the next digit (8) from the dividend, attach it to 14 and continue: 148 / 47

Going ahead to step 6:
When dividing 148 by 47, we get 3 with a remainder of 7.
Record the quotient 3 as the next digit in the result. 
Result so far: 17883.0
If we take 141 away from 148, we end up with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Step 7:
The number 47 fits into 70 1 times, leaving a remainder of 23.
Write down 1 as next digit of the result. 
Result so far: 17883.1
Subtract 47 from 70 to get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Going ahead to step 8:
When dividing 230 by 47, we get 4 with a remainder of 42.
Record the quotient 4 as the next digit in the result. 
Result so far: 17883.14
Subtract 188 from 230 to get 42.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

Advancing to step 9:
When dividing 420 by 47, we get 8 with a remainder of 44.
Record the quotient 8 as the next digit in the result. 
Result so far: 17883.148
Subtracting 376 from 420 leaves us 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.

Moving on to step 10:
When dividing 440 by 47, we get 9 with a remainder of 17.
Record the quotient 9 as the next digit in the result. 
Result so far: 17883.1489
Subtracting 423 from 440 leaves us with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Step 11:
The number 47 fits into 170 3 times, leaving a remainder of 29.
Put 3 as the next digit of the answer. 
Result so far: 17883.14893
Subtracting 141 from 170 leaves us with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

On to step 12:
The number 47 fits into 290 6 times, leaving a remainder of 8.
Record the quotient 6 as the next digit in the result. 
Result so far: 17883.148936
Subtract 282 from 290 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Step 13:
When dividing 80 by 47, we get 1 with a remainder of 33.
Record the quotient 1 as the next digit in the result. 
Result so far: 17883.1489361
Subtract 47 from 80 to get 33.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

Moving on to step 14:
When dividing 330 by 47, we get 7 with a remainder of 1.
The next digit of our result is 7. 
Result so far: 17883.14893617
Subtracting 329 from 330 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

The final result is 17883.14893617 with a remainder of 1e-09.