We're dividing 503840 by 7 
The aim is to understand the frequency of 7 in 503840.

Advancing to step 1:
When dividing 5 by 7, we get 0 with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Bring next digit (0) of the dividend behind the 5 and repeat the process: 50 / 7

On to step 2:
7 goes into 50 7 times with a remainder of 1.
The next digit of our result is 7. 
Result so far: 7.0
If we take 49 away from 50, we end up with 1.
Bring next digit (3) of the dividend behind the 1 and repeat the process: 13 / 7

Let's proceed to step 3:
7 can be fit into 13 1 times, resulting in a remainder of 6.
The number 1 becomes the next digit in our result. 
Result so far: 71.0
If we subtract 7 from 13, we get 6.
Fetch the next digit (8) from the dividend, attach it to 6 and continue: 68 / 7

Step 4:
7 goes into 68 9 times with a remainder of 5.
Put 9 as the next digit of the answer. 
Result so far: 719.0
If we subtract 63 from 68, we get 5.
Grab the next digit (4) from the dividend, add it to 5, then carry on: 54 / 7

On to step 5:
54 divided by 7 is 7 with a remainder of 5.
Use 7 as the next digit of our solution. 
Result so far: 7197.0
The remainder is 5 after subtracting 49 from 54.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 7

On to step 6:
50 divided by 7 is 7 with a remainder of 1.
The number 7 becomes the next digit in our result. 
Result so far: 71977.0
Subtract 49 from 50 to get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 7:
7 can be fit into 10 1 times, resulting in a remainder of 3.
The next digit of our result is 1. 
Result so far: 71977.1
Subtracting 7 from 10 leaves us with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Let's proceed to step 8:
30 divided by 7 is 4 with a remainder of 2.
Use 4 as the next digit of our solution. 
Result so far: 71977.14
Deduct 28 from 30 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 9:
The number 7 fits into 20 2 times, leaving a remainder of 6.
Use 2 as the next digit of our solution. 
Result so far: 71977.142
Subtract 14 from 20 to get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Let's proceed to step 10:
7 can be fit into 60 8 times, resulting in a remainder of 4.
The number 8 becomes the next digit in our result. 
Result so far: 71977.1428
The remainder is 4 after subtracting 56 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 11:
When dividing 40 by 7, we get 5 with a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 71977.14285
The remainder is 5 after subtracting 35 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Moving on to step 12:
7 goes into 50 7 times with a remainder of 1.
The next digit of our result is 7. 
Result so far: 71977.142857
Subtracting 49 from 50 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 13:
When dividing 10 by 7, we get 1 with a remainder of 3.
The next digit of our result is 1. 
Result so far: 71977.1428571
Subtract 7 from 10 to get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Let's proceed to step 14:
7 goes into 30 4 times with a remainder of 2.
Use 4 as the next digit of our solution. 
Result so far: 71977.14285714
Subtract 28 from 30 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

The quotient of the division is 71977.14285714, and the remainder is 2e-09.