Let's divide 675665 by 40
We want to divide 675665 by 40.

Going ahead to step 1:
The number 40 fits into 6 0 times, leaving a remainder of 6.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 6 after subtracting 0 from 6.
Take the next digit (7) from the dividend and append it to 6, then repeat: 67 / 40

On to step 2:
If we divide 67 by 40, we get 1 and a remainder of 27.
The next digit of our result is 1. 
Result so far: 1.0
Subtract 40 from 67 to get 27.
Take the next digit (5) from the dividend and append it to 27, then repeat: 275 / 40

On to step 3:
40 can be fit into 275 6 times, resulting in a remainder of 35.
Use 6 as the next digit of our solution. 
Result so far: 16.0
If we subtract 240 from 275, we get 35.
Fetch the next digit (6) from the dividend, attach it to 35 and continue: 356 / 40

Going ahead to step 4:
356 divided by 40 is 8 with a remainder of 36.
Use 8 as the next digit of our solution. 
Result so far: 168.0
Deduct 320 from 356 and we're left with 36.
Bring next digit (6) of the dividend behind the 36 and repeat the process: 366 / 40

Moving on to step 5:
40 goes into 366 9 times with a remainder of 6.
The next digit of our result is 9. 
Result so far: 1689.0
The remainder is 6 after subtracting 360 from 366.
Take the next digit (5) from the dividend and append it to 6, then repeat: 65 / 40

Advancing to step 6:
When dividing 65 by 40, we get 1 with a remainder of 25.
Use 1 as the next digit of our solution. 
Result so far: 16891.0
Subtract 40 from 65 to get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Advancing to step 7:
40 can be fit into 250 6 times, resulting in a remainder of 10.
Use 6 as the next digit of our solution. 
Result so far: 16891.6
Deduct 240 from 250 and we're left 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.

Step 8:
The number 40 fits into 100 2 times, leaving a remainder of 20.
Put 2 as the next digit of the answer. 
Result so far: 16891.62
Deduct 80 from 100 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.

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

On to step 10:
When dividing 0 by 40, we get 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 16891.625
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.

Advancing to step 11:
40 goes into 0 0 times with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 16891.625
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.

Our division results in 16891.625 with a remaining 0.0.