Let's divide 160838 by 842
The aim is to understand the frequency of 842 in 160838.

Step 1:
The number 842 fits into 1 0 times, leaving a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Take the next digit (6) from the dividend and append it to 1, then repeat: 16 / 842

Advancing to step 2:
When dividing 16 by 842, we get 0 with a remainder of 16.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 16 after subtracting 0 from 16.
Grab the next digit (0) from the dividend, add it to 16, then carry on: 160 / 842

On to step 3:
When dividing 160 by 842, we get 0 with a remainder of 160.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 160 and we're left with 160.
Append the next digit (8) from the dividend to 160 and continue with: 1608 / 842

Let's proceed to step 4:
The number 842 fits into 1608 1 times, leaving a remainder of 766.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we subtract 842 from 1608, we get 766.
Bring next digit (3) of the dividend behind the 766 and repeat the process: 7663 / 842

Going ahead to step 5:
7663 divided by 842 is 9 with a remainder of 85.
The next digit of our result is 9. 
Result so far: 19.0
If we subtract 7578 from 7663, we get 85.
Include the next digit (8) from the dividend after 85, then repeat: 858 / 842

Moving on to step 6:
842 goes into 858 1 times with a remainder of 16.
The next digit of our result is 1. 
Result so far: 191.0
Subtracting 842 from 858 leaves us with 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 7:
If we divide 160 by 842, we get 0 and a remainder of 160.
The number 0 becomes the next digit in our result. 
Result so far: 191.0
Deduct 0 from 160 and we're left with 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1600, and continue the process.

Advancing to step 8:
842 goes into 1600 1 times with a remainder of 758.
The next digit of our result is 1. 
Result so far: 191.01
Subtract 842 from 1600 to get 758.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7580, and continue the process.

Advancing to step 9:
7580 divided by 842 is 9 with a remainder of 2.
Write down 9 as next digit of the result. 
Result so far: 191.019
If we take 7578 away from 7580, we end up 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.

Advancing to step 10:
If we divide 20 by 842, we get 0 and a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 191.019
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.

Let's proceed to step 11:
The number 842 fits into 200 0 times, leaving a remainder of 200.
Record the quotient 0 as the next digit in the result. 
Result so far: 191.019
Subtracting 0 from 200 leaves us with 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2000, and continue the process.

The final outcome is 191.019, with a leftover of 0.0002.