Let's divide 125742 by 40
We're looking to find how many times 40 goes into 125742.

Going ahead to step 1:
40 can be fit into 1 0 times, resulting in a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Bring next digit (2) of the dividend behind the 1 and repeat the process: 12 / 40

On to step 2:
40 can be fit into 12 0 times, resulting in a remainder of 12.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 12 after subtracting 0 from 12.
Grab the next digit (5) from the dividend, add it to 12, then carry on: 125 / 40

On to step 3:
When dividing 125 by 40, we get 3 with a remainder of 5.
Use 3 as the next digit of our solution. 
Result so far: 3.0
Subtracting 120 from 125 leaves us with 5.
Take the next digit (7) from the dividend and append it to 5, then repeat: 57 / 40

Step 4:
40 can be fit into 57 1 times, resulting in a remainder of 17.
Use 1 as the next digit of our solution. 
Result so far: 31.0
If we subtract 40 from 57, we get 17.
Grab the next digit (4) from the dividend, add it to 17, then carry on: 174 / 40

On to step 5:
174 divided by 40 is 4 with a remainder of 14.
The number 4 becomes the next digit in our result. 
Result so far: 314.0
Subtract 160 from 174 to get 14.
Bring next digit (2) of the dividend behind the 14 and repeat the process: 142 / 40

Step 6:
When dividing 142 by 40, we get 3 with a remainder of 22.
Record the quotient 3 as the next digit in the result. 
Result so far: 3143.0
Subtracting 120 from 142 leaves us with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Let's proceed to step 7:
If we divide 220 by 40, we get 5 and a remainder of 20.
Put 5 as the next digit of the answer. 
Result so far: 3143.5
Subtracting 200 from 220 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.

Moving on to step 8:
If we divide 200 by 40, we get 5 and a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 3143.55
If we subtract 200 from 200, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final result is 3143.55 with a remainder of 0.0.