We're dividing 817958 by 42 
The aim is to understand the frequency of 42 in 817958.

On to step 1:
42 can be fit into 8 0 times, resulting in a remainder of 8.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 8 after subtracting 0 from 8.
Append the next digit (1) from the dividend to 8 and continue with: 81 / 42

Moving on to step 2:
81 divided by 42 is 1 with a remainder of 39.
The next digit of our result is 1. 
Result so far: 1.0
The remainder is 39 after subtracting 42 from 81.
Fetch the next digit (7) from the dividend, attach it to 39 and continue: 397 / 42

Going ahead to step 3:
42 goes into 397 9 times with a remainder of 19.
Write down 9 as next digit of the result. 
Result so far: 19.0
Subtracting 378 from 397 leaves us with 19.
Take the next digit (9) from the dividend and append it to 19, then repeat: 199 / 42

Step 4:
When dividing 199 by 42, we get 4 with a remainder of 31.
Use 4 as the next digit of our solution. 
Result so far: 194.0
If we take 168 away from 199, we end up with 31.
Bring next digit (5) of the dividend behind the 31 and repeat the process: 315 / 42

Let's proceed to step 5:
If we divide 315 by 42, we get 7 and a remainder of 21.
The number 7 becomes the next digit in our result. 
Result so far: 1947.0
Deduct 294 from 315 and we're left with 21.
Take the next digit (8) from the dividend and append it to 21, then repeat: 218 / 42

Let's proceed to step 6:
If we divide 218 by 42, we get 5 and a remainder of 8.
The next digit of our result is 5. 
Result so far: 19475.0
If we subtract 210 from 218, we get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 7:
The number 42 fits into 80 1 times, leaving a remainder of 38.
The number 1 becomes the next digit in our result. 
Result so far: 19475.1
Subtract 42 from 80 to get 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

On to step 8:
If we divide 380 by 42, we get 9 and a remainder of 2.
Use 9 as the next digit of our solution. 
Result so far: 19475.19
Subtracting 378 from 380 leaves us with 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 9:
If we divide 20 by 42, we get 0 and a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 19475.19
If we take 0 away from 20, we end up 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.

Step 10:
200 divided by 42 is 4 with a remainder of 32.
Write down 4 as next digit of the result. 
Result so far: 19475.1904
Subtracting 168 from 200 leaves us 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.

Moving on to step 11:
42 can be fit into 320 7 times, resulting in a remainder of 26.
Record the quotient 7 as the next digit in the result. 
Result so far: 19475.19047
Subtract 294 from 320 to get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Moving on to step 12:
If we divide 260 by 42, we get 6 and a remainder of 8.
Use 6 as the next digit of our solution. 
Result so far: 19475.190476
The remainder is 8 after subtracting 252 from 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 13:
When dividing 80 by 42, we get 1 with a remainder of 38.
Put 1 as the next digit of the answer. 
Result so far: 19475.1904761
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.

Moving on to step 14:
42 can be fit into 380 9 times, resulting in a remainder of 2.
Put 9 as the next digit of the answer. 
Result so far: 19475.19047619
If we subtract 378 from 380, we 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.

After the division, we end up with 19475.19047619 and a remainder of 2e-09.