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

Step 1:
4 divided by 40 is 0 with a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 40

Moving on to step 2:
40 can be fit into 40 1 times, resulting in a remainder of 0.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtracting 40 from 40 leaves us with 0.
Take the next digit (2) from the dividend and append it to 0, then repeat: 2 / 40

Step 3:
40 can be fit into 2 0 times, resulting in a remainder of 2.
Put 0 as the next digit of the answer. 
Result so far: 10.0
Deduct 0 from 2 and we're left with 2.
Append the next digit (1) from the dividend to 2 and continue with: 21 / 40

Moving on to step 4:
40 goes into 21 0 times with a remainder of 21.
The number 0 becomes the next digit in our result. 
Result so far: 100.0
Subtracting 0 from 21 leaves us with 21.
Bring next digit (5) of the dividend behind the 21 and repeat the process: 215 / 40

Step 5:
215 divided by 40 is 5 with a remainder of 15.
Put 5 as the next digit of the answer. 
Result so far: 1005.0
The remainder is 15 after subtracting 200 from 215.
Fetch the next digit (3) from the dividend, attach it to 15 and continue: 153 / 40

Step 6:
When dividing 153 by 40, we get 3 with a remainder of 33.
The number 3 becomes the next digit in our result. 
Result so far: 10053.0
If we subtract 120 from 153, we get 33.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

Going ahead to step 7:
If we divide 330 by 40, we get 8 and a remainder of 10.
The number 8 becomes the next digit in our result. 
Result so far: 10053.8
Subtracting 320 from 330 leaves us 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.

Step 8:
When dividing 100 by 40, we get 2 with a remainder of 20.
Write down 2 as next digit of the result. 
Result so far: 10053.82
Subtract 80 from 100 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.

On to step 9:
40 goes into 200 5 times with a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 10053.825
The remainder is 0 after subtracting 200 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 10:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 10053.825
If we take 0 away from 0, 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.

Advancing to step 11:
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: 10053.825
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.

The final outcome is 10053.825, with a leftover of 0.0.