40764 ÷ 17 
We're looking to find how many times 17 goes into 40764.

Going ahead to step 1:
17 goes into 4 0 times with 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.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 17

Advancing to step 2:
40 divided by 17 is 2 with a remainder of 6.
Put 2 as the next digit of the answer. 
Result so far: 2.0
If we take 34 away from 40, we end up with 6.
Include the next digit (7) from the dividend after 6, then repeat: 67 / 17

Step 3:
When dividing 67 by 17, we get 3 with a remainder of 16.
The number 3 becomes the next digit in our result. 
Result so far: 23.0
Subtract 51 from 67 to get 16.
Include the next digit (6) from the dividend after 16, then repeat: 166 / 17

On to step 4:
The number 17 fits into 166 9 times, leaving a remainder of 13.
Put 9 as the next digit of the answer. 
Result so far: 239.0
Subtracting 153 from 166 leaves us with 13.
Fetch the next digit (4) from the dividend, attach it to 13 and continue: 134 / 17

On to step 5:
The number 17 fits into 134 7 times, leaving a remainder of 15.
The next digit of our result is 7. 
Result so far: 2397.0
If we subtract 119 from 134, we get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Going ahead to step 6:
17 goes into 150 8 times with a remainder of 14.
Record the quotient 8 as the next digit in the result. 
Result so far: 2397.8
Subtracting 136 from 150 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

On to step 7:
If we divide 140 by 17, we get 8 and a remainder of 4.
Write down 8 as next digit of the result. 
Result so far: 2397.88
Deduct 136 from 140 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

In conclusion, the division gives 2397.88 with a balance of 0.004.