We look at the division of 159438 by 7 
The aim is to understand the frequency of 7 in 159438.

Going ahead to step 1:
When dividing 1 by 7, we get 0 with a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 1 to get 1.
Bring next digit (5) of the dividend behind the 1 and repeat the process: 15 / 7

Let's proceed to step 2:
15 divided by 7 is 2 with a remainder of 1.
The next digit of our result is 2. 
Result so far: 2.0
The remainder is 1 after subtracting 14 from 15.
Grab the next digit (9) from the dividend, add it to 1, then carry on: 19 / 7

Let's proceed to step 3:
7 goes into 19 2 times with a remainder of 5.
The next digit of our result is 2. 
Result so far: 22.0
Subtracting 14 from 19 leaves us with 5.
Include the next digit (4) from the dividend after 5, then repeat: 54 / 7

Step 4:
The number 7 fits into 54 7 times, leaving a remainder of 5.
Record the quotient 7 as the next digit in the result. 
Result so far: 227.0
Deduct 49 from 54 and we're left with 5.
Take the next digit (3) from the dividend and append it to 5, then repeat: 53 / 7

Advancing to step 5:
53 divided by 7 is 7 with a remainder of 4.
Record the quotient 7 as the next digit in the result. 
Result so far: 2277.0
Subtracting 49 from 53 leaves us with 4.
Take the next digit (8) from the dividend and append it to 4, then repeat: 48 / 7

Going ahead to step 6:
48 divided by 7 is 6 with a remainder of 6.
Use 6 as the next digit of our solution. 
Result so far: 22776.0
The remainder is 6 after subtracting 42 from 48.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Advancing to step 7:
7 goes into 60 8 times with a remainder of 4.
Use 8 as the next digit of our solution. 
Result so far: 22776.8
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.

On to step 8:
7 can be fit into 40 5 times, resulting in a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 22776.85
If we subtract 35 from 40, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Let's proceed to step 9:
7 can be fit into 50 7 times, resulting in a remainder of 1.
Record the quotient 7 as the next digit in the result. 
Result so far: 22776.857
If we take 49 away from 50, we end up 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.

Going ahead to step 10:
7 can be fit into 10 1 times, resulting in a remainder of 3.
Use 1 as the next digit of our solution. 
Result so far: 22776.8571
If we take 7 away from 10, we end up 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.

Advancing to step 11:
30 divided by 7 is 4 with a remainder of 2.
Put 4 as the next digit of the answer. 
Result so far: 22776.85714
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.

On to step 12:
7 goes into 20 2 times with a remainder of 6.
Write down 2 as next digit of the result. 
Result so far: 22776.857142
Subtracting 14 from 20 leaves us with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Going ahead to step 13:
7 can be fit into 60 8 times, resulting in a remainder of 4.
Put 8 as the next digit of the answer. 
Result so far: 22776.8571428
If we subtract 56 from 60, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 14:
When dividing 40 by 7, we get 5 with a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 22776.85714285
If we take 35 away from 40, we end up with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

The quotient of the division is 22776.85714285, and the remainder is 5e-09.