659317 divided by 40 
We want to divide 659317 by 40.

Advancing to step 1:
40 can be fit into 6 0 times, resulting in a remainder of 6.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 6 after subtracting 0 from 6.
Fetch the next digit (5) from the dividend, attach it to 6 and continue: 65 / 40

Let's proceed to step 2:
65 divided by 40 is 1 with a remainder of 25.
The next digit of our result is 1. 
Result so far: 1.0
Subtracting 40 from 65 leaves us with 25.
Fetch the next digit (9) from the dividend, attach it to 25 and continue: 259 / 40

Moving on to step 3:
The number 40 fits into 259 6 times, leaving a remainder of 19.
Record the quotient 6 as the next digit in the result. 
Result so far: 16.0
Deduct 240 from 259 and we're left with 19.
Include the next digit (3) from the dividend after 19, then repeat: 193 / 40

On to step 4:
40 goes into 193 4 times with a remainder of 33.
Record the quotient 4 as the next digit in the result. 
Result so far: 164.0
If we take 160 away from 193, we end up with 33.
Fetch the next digit (1) from the dividend, attach it to 33 and continue: 331 / 40

Let's proceed to step 5:
40 can be fit into 331 8 times, resulting in a remainder of 11.
Record the quotient 8 as the next digit in the result. 
Result so far: 1648.0
Deduct 320 from 331 and we're left with 11.
Fetch the next digit (7) from the dividend, attach it to 11 and continue: 117 / 40

On to step 6:
117 divided by 40 is 2 with a remainder of 37.
The number 2 becomes the next digit in our result. 
Result so far: 16482.0
If we take 80 away from 117, we end up with 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Let's proceed to step 7:
The number 40 fits into 370 9 times, leaving a remainder of 10.
The number 9 becomes the next digit in our result. 
Result so far: 16482.9
The remainder is 10 after subtracting 360 from 370.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 8:
If we divide 100 by 40, we get 2 and a remainder of 20.
The next digit of our result is 2. 
Result so far: 16482.92
The remainder is 20 after subtracting 80 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Let's proceed to step 9:
40 can be fit into 200 5 times, resulting in a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 16482.925
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.

Let's proceed to step 10:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 16482.925
Subtracting 0 from 0 leaves us 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:
If we divide 0 by 40, we get 0 and a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 16482.925
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.

After the division, we end up with 16482.925 and a remainder of 0.0.