Let's divide 165486 by 42
The aim is to understand the frequency of 42 in 165486.

Let's proceed to step 1:
42 can be fit into 1 0 times, resulting in a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Append the next digit (6) from the dividend to 1 and continue with: 16 / 42

Let's proceed to step 2:
42 goes into 16 0 times with a remainder of 16.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 16 to get 16.
Append the next digit (5) from the dividend to 16 and continue with: 165 / 42

Let's proceed to step 3:
The number 42 fits into 165 3 times, leaving a remainder of 39.
The next digit of our result is 3. 
Result so far: 3.0
Subtracting 126 from 165 leaves us with 39.
Take the next digit (4) from the dividend and append it to 39, then repeat: 394 / 42

Going ahead to step 4:
If we divide 394 by 42, we get 9 and a remainder of 16.
Record the quotient 9 as the next digit in the result. 
Result so far: 39.0
Deduct 378 from 394 and we're left with 16.
Grab the next digit (8) from the dividend, add it to 16, then carry on: 168 / 42

Step 5:
168 divided by 42 is 4 with a remainder of 0.
The next digit of our result is 4. 
Result so far: 394.0
Deduct 168 from 168 and we're left with 0.
Grab the next digit (6) from the dividend, add it to 0, then carry on: 6 / 42

Moving on to step 6:
The number 42 fits into 6 0 times, leaving a remainder of 6.
Record the quotient 0 as the next digit in the result. 
Result so far: 3940.0
Subtracting 0 from 6 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.

Step 7:
42 can be fit into 60 1 times, resulting in a remainder of 18.
Use 1 as the next digit of our solution. 
Result so far: 3940.1
If we take 42 away from 60, we end up with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

On to step 8:
180 divided by 42 is 4 with a remainder of 12.
Put 4 as the next digit of the answer. 
Result so far: 3940.14
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 9:
If we divide 120 by 42, we get 2 and a remainder of 36.
Record the quotient 2 as the next digit in the result. 
Result so far: 3940.142
If we take 84 away from 120, we end up with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Step 10:
360 divided by 42 is 8 with a remainder of 24.
The number 8 becomes the next digit in our result. 
Result so far: 3940.1428
If we subtract 336 from 360, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Moving on to step 11:
240 divided by 42 is 5 with a remainder of 30.
Write down 5 as next digit of the result. 
Result so far: 3940.14285
The remainder is 30 after subtracting 210 from 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

On to step 12:
300 divided by 42 is 7 with a remainder of 6.
Use 7 as the next digit of our solution. 
Result so far: 3940.142857
If we subtract 294 from 300, we 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.

Going ahead to step 13:
42 can be fit into 60 1 times, resulting in a remainder of 18.
The next digit of our result is 1. 
Result so far: 3940.1428571
If we take 42 away from 60, we end up with 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 14:
If we divide 180 by 42, we get 4 and a remainder of 12.
Put 4 as the next digit of the answer. 
Result so far: 3940.14285714
Subtracting 168 from 180 leaves us with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

The final result is 3940.14285714 with a remainder of 1.2e-08.