157267 ÷ 40 
Our goal is to divide 157267 by 40.

Step 1:
If we divide 1 by 40, we get 0 and a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Take the next digit (5) from the dividend and append it to 1, then repeat: 15 / 40

On to step 2:
15 divided by 40 is 0 with a remainder of 15.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 15, we get 15.
Include the next digit (7) from the dividend after 15, then repeat: 157 / 40

Moving on to step 3:
40 can be fit into 157 3 times, resulting in a remainder of 37.
Write down 3 as next digit of the result. 
Result so far: 3.0
The remainder is 37 after subtracting 120 from 157.
Take the next digit (2) from the dividend and append it to 37, then repeat: 372 / 40

Step 4:
If we divide 372 by 40, we get 9 and a remainder of 12.
The number 9 becomes the next digit in our result. 
Result so far: 39.0
Deduct 360 from 372 and we're left with 12.
Take the next digit (6) from the dividend and append it to 12, then repeat: 126 / 40

Moving on to step 5:
If we divide 126 by 40, we get 3 and a remainder of 6.
Record the quotient 3 as the next digit in the result. 
Result so far: 393.0
If we subtract 120 from 126, we get 6.
Include the next digit (7) from the dividend after 6, then repeat: 67 / 40

Moving on to step 6:
67 divided by 40 is 1 with a remainder of 27.
Write down 1 as next digit of the result. 
Result so far: 3931.0
If we take 40 away from 67, we end up with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Step 7:
40 can be fit into 270 6 times, resulting in a remainder of 30.
Write down 6 as next digit of the result. 
Result so far: 3931.6
Deduct 240 from 270 and we're left with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 8:
300 divided by 40 is 7 with a remainder of 20.
Use 7 as the next digit of our solution. 
Result so far: 3931.67
Deduct 280 from 300 and we're left 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.

Going ahead to step 9:
40 goes into 200 5 times with a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 3931.675
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 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: 3931.675
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.

On to step 11:
0 divided by 40 is 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 3931.675
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.

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