840542 divided by 43 
The aim is to understand the frequency of 43 in 840542.

Moving on to step 1:
The number 43 fits into 8 0 times, leaving a remainder of 8.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 8 after subtracting 0 from 8.
Fetch the next digit (4) from the dividend, attach it to 8 and continue: 84 / 43

Going ahead to step 2:
43 can be fit into 84 1 times, resulting in a remainder of 41.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we subtract 43 from 84, we get 41.
Include the next digit (0) from the dividend after 41, then repeat: 410 / 43

Let's proceed to step 3:
If we divide 410 by 43, we get 9 and a remainder of 23.
Write down 9 as next digit of the result. 
Result so far: 19.0
Subtracting 387 from 410 leaves us with 23.
Take the next digit (5) from the dividend and append it to 23, then repeat: 235 / 43

Advancing to step 4:
43 can be fit into 235 5 times, resulting in a remainder of 20.
The next digit of our result is 5. 
Result so far: 195.0
If we subtract 215 from 235, we get 20.
Bring next digit (4) of the dividend behind the 20 and repeat the process: 204 / 43

On to step 5:
43 goes into 204 4 times with a remainder of 32.
Write down 4 as next digit of the result. 
Result so far: 1954.0
Subtract 172 from 204 to get 32.
Take the next digit (2) from the dividend and append it to 32, then repeat: 322 / 43

Moving on to step 6:
322 divided by 43 is 7 with a remainder of 21.
The next digit of our result is 7. 
Result so far: 19547.0
The remainder is 21 after subtracting 301 from 322.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Step 7:
When dividing 210 by 43, we get 4 with a remainder of 38.
Use 4 as the next digit of our solution. 
Result so far: 19547.4
Subtracting 172 from 210 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.

Advancing to step 8:
The number 43 fits into 380 8 times, leaving a remainder of 36.
The number 8 becomes the next digit in our result. 
Result so far: 19547.48
The remainder is 36 after subtracting 344 from 380.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Step 9:
360 divided by 43 is 8 with a remainder of 16.
Record the quotient 8 as the next digit in the result. 
Result so far: 19547.488
Subtracting 344 from 360 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.

The final result is 19547.488 with a remainder of 0.0016.