177040 divided by 42 
The aim is to understand the frequency of 42 in 177040.

On to step 1:
The number 42 fits into 1 0 times, leaving a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 1 to get 1.
Append the next digit (7) from the dividend to 1 and continue with: 17 / 42

Step 2:
42 goes into 17 0 times with a remainder of 17.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 17 and we're left with 17.
Include the next digit (7) from the dividend after 17, then repeat: 177 / 42

Going ahead to step 3:
42 goes into 177 4 times with a remainder of 9.
Put 4 as the next digit of the answer. 
Result so far: 4.0
Deduct 168 from 177 and we're left with 9.
Bring next digit (0) of the dividend behind the 9 and repeat the process: 90 / 42

Going ahead to step 4:
42 can be fit into 90 2 times, resulting in a remainder of 6.
Put 2 as the next digit of the answer. 
Result so far: 42.0
If we subtract 84 from 90, we get 6.
Grab the next digit (4) from the dividend, add it to 6, then carry on: 64 / 42

On to step 5:
If we divide 64 by 42, we get 1 and a remainder of 22.
Write down 1 as next digit of the result. 
Result so far: 421.0
Subtract 42 from 64 to get 22.
Bring next digit (0) of the dividend behind the 22 and repeat the process: 220 / 42

On to step 6:
42 goes into 220 5 times with a remainder of 10.
The number 5 becomes the next digit in our result. 
Result so far: 4215.0
Subtracting 210 from 220 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

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

Moving on to step 8:
42 can be fit into 160 3 times, resulting in a remainder of 34.
The number 3 becomes the next digit in our result. 
Result so far: 4215.23
Subtract 126 from 160 to get 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

On to step 9:
The number 42 fits into 340 8 times, leaving a remainder of 4.
Write down 8 as next digit of the result. 
Result so far: 4215.238
If we subtract 336 from 340, 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.

Advancing to step 10:
The number 42 fits into 40 0 times, leaving a remainder of 40.
Use 0 as the next digit of our solution. 
Result so far: 4215.238
Subtract 0 from 40 to get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Step 11:
400 divided by 42 is 9 with a remainder of 22.
The number 9 becomes the next digit in our result. 
Result so far: 4215.23809
If we subtract 378 from 400, we get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Step 12:
42 can be fit into 220 5 times, resulting in a remainder of 10.
Record the quotient 5 as the next digit in the result. 
Result so far: 4215.238095
Subtracting 210 from 220 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Going ahead to step 13:
When dividing 100 by 42, we get 2 with a remainder of 16.
Put 2 as the next digit of the answer. 
Result so far: 4215.2380952
Subtracting 84 from 100 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

On to step 14:
160 divided by 42 is 3 with a remainder of 34.
Write down 3 as next digit of the result. 
Result so far: 4215.23809523
The remainder is 34 after subtracting 126 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

The final outcome is 4215.23809523, with a leftover of 3.4e-08.