We're dividing 254238 by 40 
We're looking to find how many times 40 goes into 254238.

Going ahead to step 1:
When dividing 2 by 40, we get 0 with a remainder of 2.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 2, we get 2.
Append the next digit (5) from the dividend to 2 and continue with: 25 / 40

Advancing to step 2:
If we divide 25 by 40, we get 0 and a remainder of 25.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 25 to get 25.
Bring next digit (4) of the dividend behind the 25 and repeat the process: 254 / 40

Let's proceed to step 3:
When dividing 254 by 40, we get 6 with a remainder of 14.
The number 6 becomes the next digit in our result. 
Result so far: 6.0
Subtracting 240 from 254 leaves us with 14.
Include the next digit (2) from the dividend after 14, then repeat: 142 / 40

Moving on to step 4:
142 divided by 40 is 3 with a remainder of 22.
Put 3 as the next digit of the answer. 
Result so far: 63.0
If we take 120 away from 142, we end up with 22.
Fetch the next digit (3) from the dividend, attach it to 22 and continue: 223 / 40

Let's proceed to step 5:
If we divide 223 by 40, we get 5 and a remainder of 23.
Record the quotient 5 as the next digit in the result. 
Result so far: 635.0
The remainder is 23 after subtracting 200 from 223.
Take the next digit (8) from the dividend and append it to 23, then repeat: 238 / 40

Let's proceed to step 6:
238 divided by 40 is 5 with a remainder of 38.
The next digit of our result is 5. 
Result so far: 6355.0
If we take 200 away from 238, we end up 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.

Step 7:
The number 40 fits into 380 9 times, leaving a remainder of 20.
Use 9 as the next digit of our solution. 
Result so far: 6355.9
Subtract 360 from 380 to get 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 8:
200 divided by 40 is 5 with a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 6355.95
Subtracting 200 from 200 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 9:
40 can be fit into 0 0 times, resulting in a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 6355.95
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 10:
40 goes into 0 0 times with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 6355.95
Deduct 0 from 0 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

After the division, we end up with 6355.95 and a remainder of 0.0.