Let's divide 1016507 by 127
The aim is to understand the frequency of 127 in 1016507.

Let's proceed to step 1:
127 can be fit into 1 0 times, resulting in a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Take the next digit (0) from the dividend and append it to 1, then repeat: 10 / 127

On to step 2:
When dividing 10 by 127, we get 0 with a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 10 after subtracting 0 from 10.
Fetch the next digit (1) from the dividend, attach it to 10 and continue: 101 / 127

Advancing to step 3:
The number 127 fits into 101 0 times, leaving a remainder of 101.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 101 to get 101.
Append the next digit (6) from the dividend to 101 and continue with: 1016 / 127

On to step 4:
127 can be fit into 1016 8 times, resulting in a remainder of 0.
The number 8 becomes the next digit in our result. 
Result so far: 8.0
If we take 1016 away from 1016, we end up with 0.
Include the next digit (5) from the dividend after 0, then repeat: 5 / 127

Moving on to step 5:
127 can be fit into 5 0 times, resulting in a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 80.0
If we take 0 away from 5, we end up with 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 127

Let's proceed to step 6:
When dividing 50 by 127, we get 0 with a remainder of 50.
The next digit of our result is 0. 
Result so far: 800.0
Deduct 0 from 50 and we're left with 50.
Fetch the next digit (7) from the dividend, attach it to 50 and continue: 507 / 127

Let's proceed to step 7:
If we divide 507 by 127, we get 3 and a remainder of 126.
Use 3 as the next digit of our solution. 
Result so far: 8003.0
If we take 381 away from 507, we end up with 126.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1260, and continue the process.

Going ahead to step 8:
When dividing 1260 by 127, we get 9 with a remainder of 117.
The number 9 becomes the next digit in our result. 
Result so far: 8003.9
The remainder is 117 after subtracting 1143 from 1260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1170, and continue the process.

Advancing to step 9:
When dividing 1170 by 127, we get 9 with a remainder of 27.
Write down 9 as next digit of the result. 
Result so far: 8003.99
If we take 1143 away from 1170, we end up with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

The quotient of the division is 8003.99, and the remainder is 0.027.