We look at the division of 177159 by 42 
The aim is to understand the frequency of 42 in 177159.

Advancing to step 1:
42 can be fit into 1 0 times, resulting in a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Fetch the next digit (7) from the dividend, attach it to 1 and continue: 17 / 42

On to step 2:
17 divided by 42 is 0 with a remainder of 17.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 17 to get 17.
Grab the next digit (7) from the dividend, add it to 17, then carry on: 177 / 42

Going ahead to step 3:
If we divide 177 by 42, we get 4 and a remainder of 9.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
If we take 168 away from 177, we end up with 9.
Take the next digit (1) from the dividend and append it to 9, then repeat: 91 / 42

On to step 4:
42 can be fit into 91 2 times, resulting in a remainder of 7.
The number 2 becomes the next digit in our result. 
Result so far: 42.0
Subtracting 84 from 91 leaves us with 7.
Append the next digit (5) from the dividend to 7 and continue with: 75 / 42

Going ahead to step 5:
42 can be fit into 75 1 times, resulting in a remainder of 33.
The number 1 becomes the next digit in our result. 
Result so far: 421.0
If we subtract 42 from 75, we get 33.
Bring next digit (9) of the dividend behind the 33 and repeat the process: 339 / 42

Step 6:
339 divided by 42 is 8 with a remainder of 3.
Put 8 as the next digit of the answer. 
Result so far: 4218.0
The remainder is 3 after subtracting 336 from 339.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 7:
42 goes into 30 0 times with a remainder of 30.
Write down 0 as next digit of the result. 
Result so far: 4218.0
The remainder is 30 after subtracting 0 from 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 8:
The number 42 fits into 300 7 times, leaving a remainder of 6.
Write down 7 as next digit of the result. 
Result so far: 4218.07
Subtract 294 from 300 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.

Advancing to step 9:
60 divided by 42 is 1 with a remainder of 18.
Record the quotient 1 as the next digit in the result. 
Result so far: 4218.071
If we subtract 42 from 60, we get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Step 10:
When dividing 180 by 42, we get 4 with a remainder of 12.
Record the quotient 4 as the next digit in the result. 
Result so far: 4218.0714
Subtract 168 from 180 to get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Moving on to step 11:
The number 42 fits into 120 2 times, leaving a remainder of 36.
Use 2 as the next digit of our solution. 
Result so far: 4218.07142
If we subtract 84 from 120, we get 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Moving on to step 12:
42 goes into 360 8 times with a remainder of 24.
The number 8 becomes the next digit in our result. 
Result so far: 4218.071428
If we take 336 away from 360, we end up with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Step 13:
The number 42 fits into 240 5 times, leaving a remainder of 30.
Put 5 as the next digit of the answer. 
Result so far: 4218.0714285
Subtract 210 from 240 to get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Advancing to step 14:
The number 42 fits into 300 7 times, leaving a remainder of 6.
Put 7 as the next digit of the answer. 
Result so far: 4218.07142857
If we take 294 away from 300, we end up 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.

Our division results in 4218.07142857 with a remaining 6e-09.