158215 divided by 40 
We want to divide 158215 by 40.

Step 1:
1 divided by 40 is 0 with a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Include the next digit (5) from the dividend after 1, then repeat: 15 / 40

On to step 2:
15 divided by 40 is 0 with a remainder of 15.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 15 to get 15.
Grab the next digit (8) from the dividend, add it to 15, then carry on: 158 / 40

Step 3:
40 goes into 158 3 times with a remainder of 38.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
If we subtract 120 from 158, we get 38.
Include the next digit (2) from the dividend after 38, then repeat: 382 / 40

Advancing to step 4:
If we divide 382 by 40, we get 9 and a remainder of 22.
Record the quotient 9 as the next digit in the result. 
Result so far: 39.0
Deduct 360 from 382 and we're left with 22.
Append the next digit (1) from the dividend to 22 and continue with: 221 / 40

Going ahead to step 5:
If we divide 221 by 40, we get 5 and a remainder of 21.
The number 5 becomes the next digit in our result. 
Result so far: 395.0
Deduct 200 from 221 and we're left with 21.
Bring next digit (5) of the dividend behind the 21 and repeat the process: 215 / 40

Moving on to step 6:
The number 40 fits into 215 5 times, leaving a remainder of 15.
Record the quotient 5 as the next digit in the result. 
Result so far: 3955.0
Subtracting 200 from 215 leaves us with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

On to step 7:
40 can be fit into 150 3 times, resulting in a remainder of 30.
Use 3 as the next digit of our solution. 
Result so far: 3955.3
Subtract 120 from 150 to get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

On to step 8:
300 divided by 40 is 7 with a remainder of 20.
Put 7 as the next digit of the answer. 
Result so far: 3955.37
The remainder is 20 after subtracting 280 from 300.
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 goes into 200 5 times with a remainder of 0.
The next digit of our result is 5. 
Result so far: 3955.375
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.

Let's proceed to step 10:
If we divide 0 by 40, we get 0 and a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 3955.375
If we subtract 0 from 0, 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.

Advancing to step 11:
When dividing 0 by 40, we get 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 3955.375
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.

The quotient of the division is 3955.375, and the remainder is 0.0.