We divide 591107 by 40
We're looking to find how many times 40 goes into 591107.

Step 1:
When dividing 5 by 40, we get 0 with 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.
Include the next digit (9) from the dividend after 5, then repeat: 59 / 40

Advancing to step 2:
When dividing 59 by 40, we get 1 with a remainder of 19.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we subtract 40 from 59, we get 19.
Take the next digit (1) from the dividend and append it to 19, then repeat: 191 / 40

Advancing to step 3:
40 goes into 191 4 times with a remainder of 31.
Put 4 as the next digit of the answer. 
Result so far: 14.0
Subtracting 160 from 191 leaves us with 31.
Append the next digit (1) from the dividend to 31 and continue with: 311 / 40

Step 4:
When dividing 311 by 40, we get 7 with a remainder of 31.
Use 7 as the next digit of our solution. 
Result so far: 147.0
Subtract 280 from 311 to get 31.
Append the next digit (0) from the dividend to 31 and continue with: 310 / 40

Going ahead to step 5:
40 can be fit into 310 7 times, resulting in a remainder of 30.
Use 7 as the next digit of our solution. 
Result so far: 1477.0
The remainder is 30 after subtracting 280 from 310.
Append the next digit (7) from the dividend to 30 and continue with: 307 / 40

Let's proceed to step 6:
307 divided by 40 is 7 with a remainder of 27.
Put 7 as the next digit of the answer. 
Result so far: 14777.0
Subtract 280 from 307 to get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Moving on to step 7:
If we divide 270 by 40, we get 6 and a remainder of 30.
Write down 6 as next digit of the result. 
Result so far: 14777.6
Subtract 240 from 270 to get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Moving on to step 8:
300 divided by 40 is 7 with a remainder of 20.
Write down 7 as next digit of the result. 
Result so far: 14777.67
Subtract 280 from 300 to get 20.
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.
Put 5 as the next digit of the answer. 
Result so far: 14777.675
If we subtract 200 from 200, 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.

Step 10:
The number 40 fits into 0 0 times, leaving a remainder of 0.
The next digit of our result is 0. 
Result so far: 14777.675
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.

On to step 11:
40 goes into 0 0 times with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 14777.675
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.

The quotient of the division is 14777.675, and the remainder is 0.0.