We look at the division of 10008538 by 507 
The aim is to understand the frequency of 507 in 10008538.

On to step 1:
507 can be fit into 1 0 times, resulting in a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Fetch the next digit (0) from the dividend, attach it to 1 and continue: 10 / 507

On to step 2:
507 can be fit into 10 0 times, resulting in a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 10, we end up with 10.
Bring next digit (0) of the dividend behind the 10 and repeat the process: 100 / 507

Step 3:
When dividing 100 by 507, we get 0 with a remainder of 100.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 100 and we're left with 100.
Fetch the next digit (0) from the dividend, attach it to 100 and continue: 1000 / 507

Step 4:
If we divide 1000 by 507, we get 1 and a remainder of 493.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtract 507 from 1000 to get 493.
Include the next digit (8) from the dividend after 493, then repeat: 4938 / 507

Advancing to step 5:
4938 divided by 507 is 9 with a remainder of 375.
The number 9 becomes the next digit in our result. 
Result so far: 19.0
If we take 4563 away from 4938, we end up with 375.
Grab the next digit (5) from the dividend, add it to 375, then carry on: 3755 / 507

On to step 6:
507 can be fit into 3755 7 times, resulting in a remainder of 206.
Record the quotient 7 as the next digit in the result. 
Result so far: 197.0
The remainder is 206 after subtracting 3549 from 3755.
Fetch the next digit (3) from the dividend, attach it to 206 and continue: 2063 / 507

Step 7:
507 goes into 2063 4 times with a remainder of 35.
Write down 4 as next digit of the result. 
Result so far: 1974.0
Deduct 2028 from 2063 and we're left with 35.
Bring next digit (8) of the dividend behind the 35 and repeat the process: 358 / 507

Moving on to step 8:
The number 507 fits into 358 0 times, leaving a remainder of 358.
The number 0 becomes the next digit in our result. 
Result so far: 19740.0
Deduct 0 from 358 and we're left with 358.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3580, and continue the process.

Going ahead to step 9:
3580 divided by 507 is 7 with a remainder of 31.
Write down 7 as next digit of the result. 
Result so far: 19740.7
If we take 3549 away from 3580, we end up with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Going ahead to step 10:
If we divide 310 by 507, we get 0 and a remainder of 310.
Use 0 as the next digit of our solution. 
Result so far: 19740.7
Subtract 0 from 310 to get 310.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3100, and continue the process.

Let's proceed to step 11:
3100 divided by 507 is 6 with a remainder of 58.
The next digit of our result is 6. 
Result so far: 19740.706
If we subtract 3042 from 3100, we get 58.
Since there are no more digits in the dividend, we add a zero to the remainder making it 580, and continue the process.

Advancing to step 12:
507 can be fit into 580 1 times, resulting in a remainder of 73.
The number 1 becomes the next digit in our result. 
Result so far: 19740.7061
The remainder is 73 after subtracting 507 from 580.
Since there are no more digits in the dividend, we add a zero to the remainder making it 730, and continue the process.

Let's proceed to step 13:
507 goes into 730 1 times with a remainder of 223.
Use 1 as the next digit of our solution. 
Result so far: 19740.70611
Deduct 507 from 730 and we're left with 223.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2230, and continue the process.

Our division results in 19740.70611 with a remaining 0.000223.