We divide 591317 by 40
We want to divide 591317 by 40.

Step 1:
40 can be fit into 5 0 times, resulting in a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Grab the next digit (9) from the dividend, add it to 5, then carry on: 59 / 40

Advancing to step 2:
If we divide 59 by 40, we get 1 and a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we subtract 40 from 59, we get 19.
Include the next digit (1) from the dividend after 19, then repeat: 191 / 40

Advancing to step 3:
When dividing 191 by 40, we get 4 with a remainder of 31.
Put 4 as the next digit of the answer. 
Result so far: 14.0
Deduct 160 from 191 and we're left with 31.
Fetch the next digit (3) from the dividend, attach it to 31 and continue: 313 / 40

Going ahead to step 4:
If we divide 313 by 40, we get 7 and a remainder of 33.
Write down 7 as next digit of the result. 
Result so far: 147.0
Deduct 280 from 313 and we're left with 33.
Bring next digit (1) of the dividend behind the 33 and repeat the process: 331 / 40

Advancing 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: 1478.0
Subtract 320 from 331 to get 11.
Grab the next digit (7) from the dividend, add it to 11, then carry on: 117 / 40

Advancing to step 6:
The number 40 fits into 117 2 times, leaving a remainder of 37.
Record the quotient 2 as the next digit in the result. 
Result so far: 14782.0
Deduct 80 from 117 and we're left 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.

Going ahead to step 7:
370 divided by 40 is 9 with a remainder of 10.
Write down 9 as next digit of the result. 
Result so far: 14782.9
Subtracting 360 from 370 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:
100 divided by 40 is 2 with a remainder of 20.
Write down 2 as next digit of the result. 
Result so far: 14782.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.

On to step 9:
The number 40 fits into 200 5 times, leaving a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 14782.925
If we take 200 away from 200, 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 10:
0 divided by 40 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 14782.925
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.

Going ahead to step 11:
If we divide 0 by 40, we get 0 and a remainder of 0.
The next digit of our result is 0. 
Result so far: 14782.925
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.

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