Let's divide 18506589 by 507
The aim is to understand the frequency of 507 in 18506589.

On to step 1:
The number 507 fits into 1 0 times, leaving a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Take the next digit (8) from the dividend and append it to 1, then repeat: 18 / 507

Moving on to step 2:
The number 507 fits into 18 0 times, leaving a remainder of 18.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 18 to get 18.
Fetch the next digit (5) from the dividend, attach it to 18 and continue: 185 / 507

Moving on to step 3:
507 can be fit into 185 0 times, resulting in a remainder of 185.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 185 leaves us with 185.
Take the next digit (0) from the dividend and append it to 185, then repeat: 1850 / 507

Let's proceed to step 4:
1850 divided by 507 is 3 with a remainder of 329.
Write down 3 as next digit of the result. 
Result so far: 3.0
If we subtract 1521 from 1850, we get 329.
Fetch the next digit (6) from the dividend, attach it to 329 and continue: 3296 / 507

Advancing to step 5:
3296 divided by 507 is 6 with a remainder of 254.
Put 6 as the next digit of the answer. 
Result so far: 36.0
Subtract 3042 from 3296 to get 254.
Append the next digit (5) from the dividend to 254 and continue with: 2545 / 507

Moving on to step 6:
507 goes into 2545 5 times with a remainder of 10.
The next digit of our result is 5. 
Result so far: 365.0
The remainder is 10 after subtracting 2535 from 2545.
Grab the next digit (8) from the dividend, add it to 10, then carry on: 108 / 507

Advancing to step 7:
507 goes into 108 0 times with a remainder of 108.
Use 0 as the next digit of our solution. 
Result so far: 3650.0
Deduct 0 from 108 and we're left with 108.
Include the next digit (9) from the dividend after 108, then repeat: 1089 / 507

Step 8:
When dividing 1089 by 507, we get 2 with a remainder of 75.
The next digit of our result is 2. 
Result so far: 36502.0
Deduct 1014 from 1089 and we're left with 75.
Since there are no more digits in the dividend, we add a zero to the remainder making it 750, and continue the process.

On to step 9:
750 divided by 507 is 1 with a remainder of 243.
Put 1 as the next digit of the answer. 
Result so far: 36502.1
If we subtract 507 from 750, we get 243.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2430, and continue the process.

Let's proceed to step 10:
When dividing 2430 by 507, we get 4 with a remainder of 402.
The number 4 becomes the next digit in our result. 
Result so far: 36502.14
Subtract 2028 from 2430 to get 402.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4020, and continue the process.

On to step 11:
When dividing 4020 by 507, we get 7 with a remainder of 471.
Put 7 as the next digit of the answer. 
Result so far: 36502.147
If we subtract 3549 from 4020, we get 471.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4710, and continue the process.

On to step 12:
507 goes into 4710 9 times with a remainder of 147.
The number 9 becomes the next digit in our result. 
Result so far: 36502.1479
If we take 4563 away from 4710, we end up with 147.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1470, and continue the process.

On to step 13:
1470 divided by 507 is 2 with a remainder of 456.
The next digit of our result is 2. 
Result so far: 36502.14792
Deduct 1014 from 1470 and we're left with 456.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4560, and continue the process.

Moving on to step 14:
4560 divided by 507 is 8 with a remainder of 504.
Use 8 as the next digit of our solution. 
Result so far: 36502.147928
If we take 4056 away from 4560, we end up with 504.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5040, and continue the process.

Advancing to step 15:
5040 divided by 507 is 9 with a remainder of 477.
Record the quotient 9 as the next digit in the result. 
Result so far: 36502.1479289
If we subtract 4563 from 5040, we get 477.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4770, and continue the process.

Moving on to step 16:
The number 507 fits into 4770 9 times, leaving a remainder of 207.
Use 9 as the next digit of our solution. 
Result so far: 36502.14792899
The remainder is 207 after subtracting 4563 from 4770.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2070, and continue the process.

The final outcome is 36502.14792899, with a leftover of 2.07e-07.