We're dividing 8037732 by 507 
The aim is to understand the frequency of 507 in 8037732.

On to step 1:
8 divided by 507 is 0 with a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 8 after subtracting 0 from 8.
Fetch the next digit (0) from the dividend, attach it to 8 and continue: 80 / 507

Advancing to step 2:
80 divided by 507 is 0 with a remainder of 80.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 80 to get 80.
Grab the next digit (3) from the dividend, add it to 80, then carry on: 803 / 507

On to step 3:
The number 507 fits into 803 1 times, leaving a remainder of 296.
The next digit of our result is 1. 
Result so far: 1.0
If we subtract 507 from 803, we get 296.
Include the next digit (7) from the dividend after 296, then repeat: 2967 / 507

Going ahead to step 4:
507 goes into 2967 5 times with a remainder of 432.
Record the quotient 5 as the next digit in the result. 
Result so far: 15.0
If we take 2535 away from 2967, we end up with 432.
Append the next digit (7) from the dividend to 432 and continue with: 4327 / 507

On to step 5:
If we divide 4327 by 507, we get 8 and a remainder of 271.
The next digit of our result is 8. 
Result so far: 158.0
Subtracting 4056 from 4327 leaves us with 271.
Grab the next digit (3) from the dividend, add it to 271, then carry on: 2713 / 507

Advancing to step 6:
2713 divided by 507 is 5 with a remainder of 178.
Record the quotient 5 as the next digit in the result. 
Result so far: 1585.0
Deduct 2535 from 2713 and we're left with 178.
Grab the next digit (2) from the dividend, add it to 178, then carry on: 1782 / 507

Step 7:
1782 divided by 507 is 3 with a remainder of 261.
Write down 3 as next digit of the result. 
Result so far: 15853.0
The remainder is 261 after subtracting 1521 from 1782.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2610, and continue the process.

Step 8:
The number 507 fits into 2610 5 times, leaving a remainder of 75.
The next digit of our result is 5. 
Result so far: 15853.5
If we subtract 2535 from 2610, we get 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: 15853.51
If we take 507 away from 750, we end up with 243.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2430, and continue the process.

On to step 10:
When dividing 2430 by 507, we get 4 with a remainder of 402.
Use 4 as the next digit of our solution. 
Result so far: 15853.514
The remainder is 402 after subtracting 2028 from 2430.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4020, and continue the process.

Going ahead to step 11:
If we divide 4020 by 507, we get 7 and a remainder of 471.
Put 7 as the next digit of the answer. 
Result so far: 15853.5147
Subtract 3549 from 4020 to 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.

Advancing to step 12:
The number 507 fits into 4710 9 times, leaving a remainder of 147.
Put 9 as the next digit of the answer. 
Result so far: 15853.51479
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.

Going ahead to step 13:
507 goes into 1470 2 times with a remainder of 456.
Write down 2 as next digit of the result. 
Result so far: 15853.514792
If we subtract 1014 from 1470, we get 456.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4560, and continue the process.

Advancing to step 14:
507 goes into 4560 8 times with a remainder of 504.
Record the quotient 8 as the next digit in the result. 
Result so far: 15853.5147928
Subtract 4056 from 4560 to get 504.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5040, and continue the process.

Step 15:
5040 divided by 507 is 9 with a remainder of 477.
Write down 9 as next digit of the result. 
Result so far: 15853.51479289
If we take 4563 away from 5040, we end up with 477.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4770, and continue the process.

Our division results in 15853.51479289 with a remaining 4.77e-07.