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

Moving on to step 1:
When dividing 5 by 47, we get 0 with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 47

On to step 2:
47 goes into 50 1 times with a remainder of 3.
Write down 1 as next digit of the result. 
Result so far: 1.0
Deduct 47 from 50 and we're left with 3.
Fetch the next digit (7) from the dividend, attach it to 3 and continue: 37 / 47

Moving on to step 3:
47 can be fit into 37 0 times, resulting in a remainder of 37.
The next digit of our result is 0. 
Result so far: 10.0
If we subtract 0 from 37, we get 37.
Include the next digit (9) from the dividend after 37, then repeat: 379 / 47

On to step 4:
The number 47 fits into 379 8 times, leaving a remainder of 3.
Use 8 as the next digit of our solution. 
Result so far: 108.0
If we subtract 376 from 379, we get 3.
Grab the next digit (9) from the dividend, add it to 3, then carry on: 39 / 47

Advancing to step 5:
If we divide 39 by 47, we get 0 and a remainder of 39.
The number 0 becomes the next digit in our result. 
Result so far: 1080.0
If we take 0 away from 39, we end up with 39.
Fetch the next digit (5) from the dividend, attach it to 39 and continue: 395 / 47

On to step 6:
47 can be fit into 395 8 times, resulting in a remainder of 19.
Record the quotient 8 as the next digit in the result. 
Result so far: 10808.0
Subtract 376 from 395 to get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Moving on to step 7:
190 divided by 47 is 4 with a remainder of 2.
The number 4 becomes the next digit in our result. 
Result so far: 10808.4
Deduct 188 from 190 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 8:
If we divide 20 by 47, we get 0 and a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 10808.4
Subtracting 0 from 20 leaves us with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 9:
47 can be fit into 200 4 times, resulting in a remainder of 12.
Write down 4 as next digit of the result. 
Result so far: 10808.404
If we take 188 away from 200, we end up with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Going ahead to step 10:
47 can be fit into 120 2 times, resulting in a remainder of 26.
The number 2 becomes the next digit in our result. 
Result so far: 10808.4042
If we take 94 away from 120, we end up with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Let's proceed to step 11:
The number 47 fits into 260 5 times, leaving a remainder of 25.
Record the quotient 5 as the next digit in the result. 
Result so far: 10808.40425
Deduct 235 from 260 and we're left with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Moving on to step 12:
47 goes into 250 5 times with a remainder of 15.
Write down 5 as next digit of the result. 
Result so far: 10808.404255
Deduct 235 from 250 and we're left with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

The final outcome is 10808.404255, with a leftover of 1.5e-06.