10020795 ÷ 506 
The aim is to understand the frequency of 506 in 10020795.

On to step 1:
If we divide 1 by 506, we get 0 and a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Append the next digit (0) from the dividend to 1 and continue with: 10 / 506

On to step 2:
The number 506 fits into 10 0 times, leaving a remainder of 10.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 10 leaves us with 10.
Append the next digit (0) from the dividend to 10 and continue with: 100 / 506

Let's proceed to step 3:
506 goes into 100 0 times with a remainder of 100.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 100 and we're left with 100.
Append the next digit (2) from the dividend to 100 and continue with: 1002 / 506

Step 4:
1002 divided by 506 is 1 with a remainder of 496.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtracting 506 from 1002 leaves us with 496.
Fetch the next digit (0) from the dividend, attach it to 496 and continue: 4960 / 506

Moving on to step 5:
4960 divided by 506 is 9 with a remainder of 406.
Write down 9 as next digit of the result. 
Result so far: 19.0
If we take 4554 away from 4960, we end up with 406.
Grab the next digit (7) from the dividend, add it to 406, then carry on: 4067 / 506

Step 6:
506 can be fit into 4067 8 times, resulting in a remainder of 19.
The number 8 becomes the next digit in our result. 
Result so far: 198.0
If we take 4048 away from 4067, we end up with 19.
Include the next digit (9) from the dividend after 19, then repeat: 199 / 506

Going ahead to step 7:
When dividing 199 by 506, we get 0 with a remainder of 199.
The next digit of our result is 0. 
Result so far: 1980.0
The remainder is 199 after subtracting 0 from 199.
Append the next digit (5) from the dividend to 199 and continue with: 1995 / 506

On to step 8:
If we divide 1995 by 506, we get 3 and a remainder of 477.
Put 3 as the next digit of the answer. 
Result so far: 19803.0
The remainder is 477 after subtracting 1518 from 1995.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4770, and continue the process.

On to step 9:
506 can be fit into 4770 9 times, resulting in a remainder of 216.
Write down 9 as next digit of the result. 
Result so far: 19803.9
Subtract 4554 from 4770 to get 216.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2160, and continue the process.

Step 10:
506 goes into 2160 4 times with a remainder of 136.
The next digit of our result is 4. 
Result so far: 19803.94
The remainder is 136 after subtracting 2024 from 2160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1360, and continue the process.

Advancing to step 11:
506 goes into 1360 2 times with a remainder of 348.
Record the quotient 2 as the next digit in the result. 
Result so far: 19803.942
If we subtract 1012 from 1360, we get 348.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3480, and continue the process.

On to step 12:
If we divide 3480 by 506, we get 6 and a remainder of 444.
The next digit of our result is 6. 
Result so far: 19803.9426
If we subtract 3036 from 3480, we get 444.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4440, and continue the process.

Let's proceed to step 13:
When dividing 4440 by 506, we get 8 with a remainder of 392.
Use 8 as the next digit of our solution. 
Result so far: 19803.94268
Subtracting 4048 from 4440 leaves us with 392.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3920, and continue the process.

On to step 14:
If we divide 3920 by 506, we get 7 and a remainder of 378.
Use 7 as the next digit of our solution. 
Result so far: 19803.942687
Deduct 3542 from 3920 and we're left with 378.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3780, and continue the process.

Let's proceed to step 15:
If we divide 3780 by 506, we get 7 and a remainder of 238.
The next digit of our result is 7. 
Result so far: 19803.9426877
Subtract 3542 from 3780 to get 238.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2380, and continue the process.

The final outcome is 19803.9426877, with a leftover of 2.38e-06.