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

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
If we subtract 0 from 5, we get 5.
Include the next digit (7) from the dividend after 5, then repeat: 57 / 42

Going ahead to step 2:
When dividing 57 by 42, we get 1 with a remainder of 15.
Put 1 as the next digit of the answer. 
Result so far: 1.0
The remainder is 15 after subtracting 42 from 57.
Include the next digit (7) from the dividend after 15, then repeat: 157 / 42

On to step 3:
42 goes into 157 3 times with a remainder of 31.
Record the quotient 3 as the next digit in the result. 
Result so far: 13.0
If we take 126 away from 157, we end up with 31.
Grab the next digit (5) from the dividend, add it to 31, then carry on: 315 / 42

Going ahead to step 4:
The number 42 fits into 315 7 times, leaving a remainder of 21.
Write down 7 as next digit of the result. 
Result so far: 137.0
Deduct 294 from 315 and we're left with 21.
Grab the next digit (9) from the dividend, add it to 21, then carry on: 219 / 42

Going ahead to step 5:
219 divided by 42 is 5 with a remainder of 9.
Use 5 as the next digit of our solution. 
Result so far: 1375.0
Deduct 210 from 219 and we're left with 9.
Bring next digit (3) of the dividend behind the 9 and repeat the process: 93 / 42

Advancing to step 6:
42 goes into 93 2 times with a remainder of 9.
The next digit of our result is 2. 
Result so far: 13752.0
Subtracting 84 from 93 leaves us with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

On to step 7:
If we divide 90 by 42, we get 2 and a remainder of 6.
The next digit of our result is 2. 
Result so far: 13752.2
If we subtract 84 from 90, 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.

Advancing to step 8:
When dividing 60 by 42, we get 1 with a remainder of 18.
Put 1 as the next digit of the answer. 
Result so far: 13752.21
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.

On to step 9:
When dividing 180 by 42, we get 4 with a remainder of 12.
Write down 4 as next digit of the result. 
Result so far: 13752.214
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 10:
When dividing 120 by 42, we get 2 with a remainder of 36.
Write down 2 as next digit of the result. 
Result so far: 13752.2142
Subtract 84 from 120 to 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 11:
If we divide 360 by 42, we get 8 and a remainder of 24.
Write down 8 as next digit of the result. 
Result so far: 13752.21428
Subtracting 336 from 360 leaves us 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.

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: 13752.214285
Deduct 210 from 240 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.

Moving on to step 13:
If we divide 300 by 42, we get 7 and a remainder of 6.
The next digit of our result is 7. 
Result so far: 13752.2142857
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.

Going ahead to step 14:
If we divide 60 by 42, we get 1 and a remainder of 18.
Write down 1 as next digit of the result. 
Result so far: 13752.21428571
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.

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