Let's divide 501581 by 47
The aim is to understand the frequency of 47 in 501581.

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 subtract 0 from 5, we get 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 47

Going ahead to step 2:
50 divided by 47 is 1 with a remainder of 3.
The next digit of our result is 1. 
Result so far: 1.0
Subtracting 47 from 50 leaves us with 3.
Fetch the next digit (1) from the dividend, attach it to 3 and continue: 31 / 47

Step 3:
31 divided by 47 is 0 with a remainder of 31.
The number 0 becomes the next digit in our result. 
Result so far: 10.0
If we subtract 0 from 31, we get 31.
Take the next digit (5) from the dividend and append it to 31, then repeat: 315 / 47

Advancing to step 4:
The number 47 fits into 315 6 times, leaving a remainder of 33.
The next digit of our result is 6. 
Result so far: 106.0
Deduct 282 from 315 and we're left with 33.
Append the next digit (8) from the dividend to 33 and continue with: 338 / 47

Moving on to step 5:
When dividing 338 by 47, we get 7 with a remainder of 9.
Write down 7 as next digit of the result. 
Result so far: 1067.0
If we take 329 away from 338, we end up with 9.
Include the next digit (1) from the dividend after 9, then repeat: 91 / 47

Moving on to step 6:
The number 47 fits into 91 1 times, leaving a remainder of 44.
The next digit of our result is 1. 
Result so far: 10671.0
If we subtract 47 from 91, we get 44.
Since there are no more digits in the dividend, we add a zero to the remainder making it 440, and continue the process.

On to step 7:
47 can be fit into 440 9 times, resulting in a remainder of 17.
Use 9 as the next digit of our solution. 
Result so far: 10671.9
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.

On to step 8:
The number 47 fits into 170 3 times, leaving a remainder of 29.
The number 3 becomes the next digit in our result. 
Result so far: 10671.93
If we subtract 141 from 170, we 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.

Advancing to step 9:
If we divide 290 by 47, we get 6 and a remainder of 8.
The next digit of our result is 6. 
Result so far: 10671.936
Deduct 282 from 290 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 10:
47 goes into 80 1 times with a remainder of 33.
Record the quotient 1 as the next digit in the result. 
Result so far: 10671.9361
If we subtract 47 from 80, we 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.

Going ahead to step 11:
When dividing 330 by 47, we get 7 with a remainder of 1.
Use 7 as the next digit of our solution. 
Result so far: 10671.93617
The remainder is 1 after subtracting 329 from 330.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 12:
47 can be fit into 10 0 times, resulting in a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 10671.93617
If we subtract 0 from 10, we get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Going ahead to step 13:
100 divided by 47 is 2 with a remainder of 6.
Record the quotient 2 as the next digit in the result. 
Result so far: 10671.9361702
Subtracting 94 from 100 leaves us with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

On to step 14:
The number 47 fits into 60 1 times, leaving a remainder of 13.
Record the quotient 1 as the next digit in the result. 
Result so far: 10671.93617021
Deduct 47 from 60 and we're left with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

The final result is 10671.93617021 with a remainder of 1.3e-08.