We're dividing 465164 by 40 
Let's see how many times 40 fits into 465164.

On to step 1:
The number 40 fits into 4 0 times, leaving a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Take the next digit (6) from the dividend and append it to 4, then repeat: 46 / 40

Let's proceed to step 2:
When dividing 46 by 40, we get 1 with a remainder of 6.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtracting 40 from 46 leaves us with 6.
Grab the next digit (5) from the dividend, add it to 6, then carry on: 65 / 40

On to step 3:
When dividing 65 by 40, we get 1 with a remainder of 25.
The number 1 becomes the next digit in our result. 
Result so far: 11.0
If we take 40 away from 65, we end up with 25.
Take the next digit (1) from the dividend and append it to 25, then repeat: 251 / 40

Step 4:
If we divide 251 by 40, we get 6 and a remainder of 11.
Write down 6 as next digit of the result. 
Result so far: 116.0
Deduct 240 from 251 and we're left with 11.
Grab the next digit (6) from the dividend, add it to 11, then carry on: 116 / 40

Going ahead to step 5:
When dividing 116 by 40, we get 2 with a remainder of 36.
Use 2 as the next digit of our solution. 
Result so far: 1162.0
The remainder is 36 after subtracting 80 from 116.
Fetch the next digit (4) from the dividend, attach it to 36 and continue: 364 / 40

Advancing to step 6:
364 divided by 40 is 9 with a remainder of 4.
Record the quotient 9 as the next digit in the result. 
Result so far: 11629.0
Subtract 360 from 364 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 7:
40 can be fit into 40 1 times, resulting in a remainder of 0.
Use 1 as the next digit of our solution. 
Result so far: 11629.1
If we take 40 away from 40, 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.

On to step 8:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 11629.1
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.

Step 9:
When dividing 0 by 40, we get 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 11629.1
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.

Our division results in 11629.1 with a remaining 0.0.