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

On to step 1:
42 can be fit into 5 0 times, resulting in a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Append the next digit (8) from the dividend to 5 and continue with: 58 / 42

On to step 2:
If we divide 58 by 42, we get 1 and a remainder of 16.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtracting 42 from 58 leaves us with 16.
Include the next digit (0) from the dividend after 16, then repeat: 160 / 42

Going ahead to step 3:
When dividing 160 by 42, we get 3 with a remainder of 34.
Write down 3 as next digit of the result. 
Result so far: 13.0
Subtract 126 from 160 to get 34.
Append the next digit (1) from the dividend to 34 and continue with: 341 / 42

Going ahead to step 4:
If we divide 341 by 42, we get 8 and a remainder of 5.
Write down 8 as next digit of the result. 
Result so far: 138.0
If we take 336 away from 341, we end up with 5.
Append the next digit (8) from the dividend to 5 and continue with: 58 / 42

On to step 5:
42 goes into 58 1 times with a remainder of 16.
Record the quotient 1 as the next digit in the result. 
Result so far: 1381.0
If we subtract 42 from 58, we get 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 6:
42 can be fit into 160 3 times, resulting in a remainder of 34.
Use 3 as the next digit of our solution. 
Result so far: 1381.3
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.

Advancing to step 7:
42 can be fit into 340 8 times, resulting in a remainder of 4.
Write down 8 as next digit of the result. 
Result so far: 1381.38
If we take 336 away from 340, we end up with 4.
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 8:
42 goes into 40 0 times with a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 1381.38
The remainder is 40 after subtracting 0 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Let's proceed to step 9:
If we divide 400 by 42, we get 9 and a remainder of 22.
Record the quotient 9 as the next digit in the result. 
Result so far: 1381.3809
The remainder is 22 after subtracting 378 from 400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

On to step 10:
220 divided by 42 is 5 with a remainder of 10.
Use 5 as the next digit of our solution. 
Result so far: 1381.38095
If we subtract 210 from 220, we get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Moving on to step 11:
42 goes into 100 2 times with a remainder of 16.
Write down 2 as next digit of the result. 
Result so far: 1381.380952
The remainder is 16 after subtracting 84 from 100.
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 12:
42 can be fit into 160 3 times, resulting in a remainder of 34.
The next digit of our result is 3. 
Result so far: 1381.3809523
Deduct 126 from 160 and we're left with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Advancing to step 13:
If we divide 340 by 42, we get 8 and a remainder of 4.
Put 8 as the next digit of the answer. 
Result so far: 1381.38095238
Subtracting 336 from 340 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Our division results in 1381.38095238 with a remaining 4e-09.