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

Step 1:
40 can be fit into 1 0 times, resulting in a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Append the next digit (5) from the dividend to 1 and continue with: 15 / 40

Advancing to step 2:
The number 40 fits into 15 0 times, leaving a remainder of 15.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 15 after subtracting 0 from 15.
Grab the next digit (5) from the dividend, add it to 15, then carry on: 155 / 40

Let's proceed to step 3:
40 goes into 155 3 times with a remainder of 35.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
If we subtract 120 from 155, we get 35.
Grab the next digit (1) from the dividend, add it to 35, then carry on: 351 / 40

Let's proceed to step 4:
The number 40 fits into 351 8 times, leaving a remainder of 31.
Use 8 as the next digit of our solution. 
Result so far: 38.0
Deduct 320 from 351 and we're left with 31.
Bring next digit (6) of the dividend behind the 31 and repeat the process: 316 / 40

Step 5:
40 goes into 316 7 times with a remainder of 36.
Use 7 as the next digit of our solution. 
Result so far: 387.0
Deduct 280 from 316 and we're left with 36.
Append the next digit (6) from the dividend to 36 and continue with: 366 / 40

Going ahead to step 6:
If we divide 366 by 40, we get 9 and a remainder of 6.
Record the quotient 9 as the next digit in the result. 
Result so far: 3879.0
If we subtract 360 from 366, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Going ahead to step 7:
40 can be fit into 60 1 times, resulting in a remainder of 20.
The number 1 becomes the next digit in our result. 
Result so far: 3879.1
If we take 40 away from 60, we end up 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.

Advancing to step 8:
40 goes into 200 5 times with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 3879.15
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.

Let's proceed to step 9:
40 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 3879.15
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.

Step 10:
40 goes into 0 0 times with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 3879.15
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 3879.15 with a balance of 0.0.