Let's divide 504861 by 7
The aim is to understand the frequency of 7 in 504861.

Going ahead to step 1:
The number 7 fits into 5 0 times, leaving a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 7

Step 2:
The number 7 fits into 50 7 times, leaving a remainder of 1.
Write down 7 as next digit of the result. 
Result so far: 7.0
If we take 49 away from 50, we end up with 1.
Fetch the next digit (4) from the dividend, attach it to 1 and continue: 14 / 7

Advancing to step 3:
7 goes into 14 2 times with a remainder of 0.
Write down 2 as next digit of the result. 
Result so far: 72.0
If we take 14 away from 14, we end up with 0.
Include the next digit (8) from the dividend after 0, then repeat: 8 / 7

Moving on to step 4:
The number 7 fits into 8 1 times, leaving a remainder of 1.
Use 1 as the next digit of our solution. 
Result so far: 721.0
The remainder is 1 after subtracting 7 from 8.
Grab the next digit (6) from the dividend, add it to 1, then carry on: 16 / 7

Going ahead to step 5:
16 divided by 7 is 2 with a remainder of 2.
Use 2 as the next digit of our solution. 
Result so far: 7212.0
The remainder is 2 after subtracting 14 from 16.
Bring next digit (1) of the dividend behind the 2 and repeat the process: 21 / 7

Advancing to step 6:
The number 7 fits into 21 3 times, leaving a remainder of 0.
Put 3 as the next digit of the answer. 
Result so far: 72123.0
Subtract 21 from 21 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 7:
The number 7 fits into 0 0 times, leaving a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 72123.0
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 8:
7 goes into 0 0 times with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 72123.0
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final result is 72123.0 with a remainder of 0.0.