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

Moving on to step 1:
5 divided by 42 is 0 with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Append the next digit (8) from the dividend to 5 and continue with: 58 / 42

Step 2:
When dividing 58 by 42, we get 1 with a remainder of 16.
Use 1 as the next digit of our solution. 
Result so far: 1.0
The remainder is 16 after subtracting 42 from 58.
Fetch the next digit (8) from the dividend, attach it to 16 and continue: 168 / 42

Going ahead to step 3:
42 goes into 168 4 times with a remainder of 0.
Use 4 as the next digit of our solution. 
Result so far: 14.0
The remainder is 0 after subtracting 168 from 168.
Fetch the next digit (7) from the dividend, attach it to 0 and continue: 7 / 42

Moving on to step 4:
42 can be fit into 7 0 times, resulting in a remainder of 7.
Use 0 as the next digit of our solution. 
Result so far: 140.0
If we subtract 0 from 7, we get 7.
Grab the next digit (9) from the dividend, add it to 7, then carry on: 79 / 42

Moving on to step 5:
The number 42 fits into 79 1 times, leaving a remainder of 37.
Record the quotient 1 as the next digit in the result. 
Result so far: 1401.0
Subtracting 42 from 79 leaves us with 37.
Grab the next digit (7) from the dividend, add it to 37, then carry on: 377 / 42

Advancing to step 6:
377 divided by 42 is 8 with a remainder of 41.
Record the quotient 8 as the next digit in the result. 
Result so far: 14018.0
Subtracting 336 from 377 leaves us with 41.
Since there are no more digits in the dividend, we add a zero to the remainder making it 410, and continue the process.

Going ahead to step 7:
The number 42 fits into 410 9 times, leaving a remainder of 32.
The number 9 becomes the next digit in our result. 
Result so far: 14018.9
Subtract 378 from 410 to get 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Step 8:
320 divided by 42 is 7 with a remainder of 26.
Record the quotient 7 as the next digit in the result. 
Result so far: 14018.97
Deduct 294 from 320 and we're left with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

On to step 9:
If we divide 260 by 42, we get 6 and a remainder of 8.
Record the quotient 6 as the next digit in the result. 
Result so far: 14018.976
Deduct 252 from 260 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Step 10:
If we divide 80 by 42, we get 1 and a remainder of 38.
Write down 1 as next digit of the result. 
Result so far: 14018.9761
Subtracting 42 from 80 leaves us with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Step 11:
42 goes into 380 9 times with a remainder of 2.
Record the quotient 9 as the next digit in the result. 
Result so far: 14018.97619
Subtract 378 from 380 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 12:
20 divided by 42 is 0 with a remainder of 20.
The next digit of our result is 0. 
Result so far: 14018.97619
Subtracting 0 from 20 leaves us with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 13:
200 divided by 42 is 4 with a remainder of 32.
The next digit of our result is 4. 
Result so far: 14018.9761904
Deduct 168 from 200 and we're left with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Advancing to step 14:
320 divided by 42 is 7 with a remainder of 26.
Write down 7 as next digit of the result. 
Result so far: 14018.97619047
Deduct 294 from 320 and we're left with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

The quotient of the division is 14018.97619047, and the remainder is 2.6e-08.