We divide 586812 by 42
The aim is to understand the frequency of 42 in 586812.

Let's proceed to step 1:
42 goes into 5 0 times with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Include the next digit (8) from the dividend after 5, then repeat: 58 / 42

Let's proceed to step 2:
42 goes into 58 1 times with a remainder of 16.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtracting 42 from 58 leaves us with 16.
Append the next digit (6) from the dividend to 16 and continue with: 166 / 42

On to step 3:
42 can be fit into 166 3 times, resulting in a remainder of 40.
The number 3 becomes the next digit in our result. 
Result so far: 13.0
Subtract 126 from 166 to get 40.
Bring next digit (8) of the dividend behind the 40 and repeat the process: 408 / 42

Moving on to step 4:
If we divide 408 by 42, we get 9 and a remainder of 30.
Record the quotient 9 as the next digit in the result. 
Result so far: 139.0
If we take 378 away from 408, we end up with 30.
Take the next digit (1) from the dividend and append it to 30, then repeat: 301 / 42

On to step 5:
When dividing 301 by 42, we get 7 with a remainder of 7.
Use 7 as the next digit of our solution. 
Result so far: 1397.0
Subtracting 294 from 301 leaves us with 7.
Append the next digit (2) from the dividend to 7 and continue with: 72 / 42

Moving on to step 6:
If we divide 72 by 42, we get 1 and a remainder of 30.
Use 1 as the next digit of our solution. 
Result so far: 13971.0
Deduct 42 from 72 and we're left with 30.
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 7:
300 divided by 42 is 7 with a remainder of 6.
Record the quotient 7 as the next digit in the result. 
Result so far: 13971.7
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.

Going ahead to step 8:
When dividing 60 by 42, we get 1 with a remainder of 18.
Record the quotient 1 as the next digit in the result. 
Result so far: 13971.71
The remainder is 18 after subtracting 42 from 60.
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 9:
The number 42 fits into 180 4 times, leaving a remainder of 12.
Put 4 as the next digit of the answer. 
Result so far: 13971.714
The remainder is 12 after subtracting 168 from 180.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Let's proceed to step 10:
If we divide 120 by 42, we get 2 and a remainder of 36.
Put 2 as the next digit of the answer. 
Result so far: 13971.7142
Deduct 84 from 120 and we're left 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.

Going ahead to step 11:
When dividing 360 by 42, we get 8 with a remainder of 24.
Use 8 as the next digit of our solution. 
Result so far: 13971.71428
Subtract 336 from 360 to 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.

On to step 12:
42 can be fit into 240 5 times, resulting in a remainder of 30.
Write down 5 as next digit of the result. 
Result so far: 13971.714285
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.

Let's proceed to step 13:
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: 13971.7142857
Deduct 294 from 300 and we're left 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.

Advancing to step 14:
If we divide 60 by 42, we get 1 and a remainder of 18.
The next digit of our result is 1. 
Result so far: 13971.71428571
Deduct 42 from 60 and we're left 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.

The final outcome is 13971.71428571, with a leftover of 1.8e-08.