Let's divide 950165 by 40
We want to figure out the number of times 950165 can be divided by 40.

Going ahead to step 1:
9 divided by 40 is 0 with a remainder of 9.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 9, we get 9.
Include the next digit (5) from the dividend after 9, then repeat: 95 / 40

Moving on to step 2:
40 can be fit into 95 2 times, resulting in a remainder of 15.
Use 2 as the next digit of our solution. 
Result so far: 2.0
Deduct 80 from 95 and we're left with 15.
Take the next digit (0) from the dividend and append it to 15, then repeat: 150 / 40

On to step 3:
40 goes into 150 3 times with a remainder of 30.
Use 3 as the next digit of our solution. 
Result so far: 23.0
Deduct 120 from 150 and we're left with 30.
Bring next digit (1) of the dividend behind the 30 and repeat the process: 301 / 40

On to step 4:
40 can be fit into 301 7 times, resulting in a remainder of 21.
The number 7 becomes the next digit in our result. 
Result so far: 237.0
Subtract 280 from 301 to get 21.
Include the next digit (6) from the dividend after 21, then repeat: 216 / 40

Moving on to step 5:
If we divide 216 by 40, we get 5 and a remainder of 16.
Put 5 as the next digit of the answer. 
Result so far: 2375.0
Subtracting 200 from 216 leaves us with 16.
Append the next digit (5) from the dividend to 16 and continue with: 165 / 40

Let's proceed to step 6:
165 divided by 40 is 4 with a remainder of 5.
Put 4 as the next digit of the answer. 
Result so far: 23754.0
Subtracting 160 from 165 leaves us with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Moving on to step 7:
When dividing 50 by 40, we get 1 with a remainder of 10.
Write down 1 as next digit of the result. 
Result so far: 23754.1
Subtracting 40 from 50 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.

Moving on to step 8:
When dividing 100 by 40, we get 2 with a remainder of 20.
Put 2 as the next digit of the answer. 
Result so far: 23754.12
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.

Step 9:
If we divide 200 by 40, we get 5 and a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 23754.125
Deduct 200 from 200 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.

Advancing to step 10:
If we divide 0 by 40, we get 0 and a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 23754.125
The remainder is 0 after subtracting 0 from 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.
Record the quotient 0 as the next digit in the result. 
Result so far: 23754.125
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.

Our division results in 23754.125 with a remaining 0.0.