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

Moving on to step 1:
5 divided by 42 is 0 with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Fetch the next digit (4) from the dividend, attach it to 5 and continue: 54 / 42

Advancing to step 2:
54 divided by 42 is 1 with a remainder of 12.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we subtract 42 from 54, we get 12.
Take the next digit (1) from the dividend and append it to 12, then repeat: 121 / 42

Let's proceed to step 3:
If we divide 121 by 42, we get 2 and a remainder of 37.
The next digit of our result is 2. 
Result so far: 12.0
Deduct 84 from 121 and we're left with 37.
Bring next digit (4) of the dividend behind the 37 and repeat the process: 374 / 42

Moving on to step 4:
42 goes into 374 8 times with a remainder of 38.
The next digit of our result is 8. 
Result so far: 128.0
Subtract 336 from 374 to get 38.
Include the next digit (0) from the dividend after 38, then repeat: 380 / 42

Advancing to step 5:
380 divided by 42 is 9 with a remainder of 2.
Write down 9 as next digit of the result. 
Result so far: 1289.0
If we take 378 away from 380, 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.

On to step 6:
20 divided by 42 is 0 with a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 1289.0
The remainder is 20 after subtracting 0 from 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 7:
42 can be fit into 200 4 times, resulting in a remainder of 32.
Record the quotient 4 as the next digit in the result. 
Result so far: 1289.04
Subtract 168 from 200 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.

On to step 8:
When dividing 320 by 42, we get 7 with a remainder of 26.
Write down 7 as next digit of the result. 
Result so far: 1289.047
Subtracting 294 from 320 leaves us 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:
42 can be fit into 260 6 times, resulting in a remainder of 8.
Put 6 as the next digit of the answer. 
Result so far: 1289.0476
Subtract 252 from 260 to 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.

Moving on to step 10:
When dividing 80 by 42, we get 1 with a remainder of 38.
The next digit of our result is 1. 
Result so far: 1289.04761
If we subtract 42 from 80, we 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.

Let's proceed to step 11:
380 divided by 42 is 9 with a remainder of 2.
Put 9 as the next digit of the answer. 
Result so far: 1289.047619
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.

Advancing to step 12:
If we divide 20 by 42, we get 0 and a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 1289.047619
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.

Going ahead to step 13:
If we divide 200 by 42, we get 4 and a remainder of 32.
Use 4 as the next digit of our solution. 
Result so far: 1289.04761904
Subtract 168 from 200 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.

After the division, we end up with 1289.04761904 and a remainder of 3.2e-08.