400057 divided by 40 
We're looking to find how many times 40 goes into 400057.

Let's proceed to step 1:
The number 40 fits into 4 0 times, leaving a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 40

On to step 2:
When dividing 40 by 40, we get 1 with a remainder of 0.
Put 1 as the next digit of the answer. 
Result so far: 1.0
The remainder is 0 after subtracting 40 from 40.
Grab the next digit (0) from the dividend, add it to 0, then carry on: 0 / 40

On to step 3:
If we divide 0 by 40, we get 0 and a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 10.0
If we take 0 away from 0, we end up with 0.
Fetch the next digit (0) from the dividend, attach it to 0 and continue: 0 / 40

On to step 4:
0 divided by 40 is 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 100.0
The remainder is 0 after subtracting 0 from 0.
Include the next digit (5) from the dividend after 0, then repeat: 5 / 40

Advancing to step 5:
The number 40 fits into 5 0 times, leaving a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 1000.0
Subtracting 0 from 5 leaves us with 5.
Fetch the next digit (7) from the dividend, attach it to 5 and continue: 57 / 40

Let's proceed to step 6:
40 can be fit into 57 1 times, resulting in a remainder of 17.
The number 1 becomes the next digit in our result. 
Result so far: 10001.0
Deduct 40 from 57 and we're left with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Step 7:
When dividing 170 by 40, we get 4 with a remainder of 10.
The number 4 becomes the next digit in our result. 
Result so far: 10001.4
If we take 160 away from 170, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 8:
40 goes into 100 2 times with a remainder of 20.
The next digit of our result is 2. 
Result so far: 10001.42
Subtracting 80 from 100 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 9:
40 can be fit into 200 5 times, resulting in a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 10001.425
If we take 200 away from 200, we end up 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.

Moving on to step 10:
If we divide 0 by 40, we get 0 and a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 10001.425
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.

Let's proceed to step 11:
40 can be fit into 0 0 times, resulting in a remainder of 0.
The next digit of our result is 0. 
Result so far: 10001.425
Subtract 0 from 0 to 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.

In conclusion, the division gives 10001.425 with a balance of 0.0.