We divide 40588359 by 59
We're looking to find how many times 59 goes into 40588359.

Step 1:
The number 59 fits into 4 0 times, leaving a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 59

Let's proceed to step 2:
59 goes into 40 0 times with a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 40 after subtracting 0 from 40.
Include the next digit (5) from the dividend after 40, then repeat: 405 / 59

Let's proceed to step 3:
If we divide 405 by 59, we get 6 and a remainder of 51.
Write down 6 as next digit of the result. 
Result so far: 6.0
Subtracting 354 from 405 leaves us with 51.
Fetch the next digit (8) from the dividend, attach it to 51 and continue: 518 / 59

On to step 4:
When dividing 518 by 59, we get 8 with a remainder of 46.
The next digit of our result is 8. 
Result so far: 68.0
The remainder is 46 after subtracting 472 from 518.
Fetch the next digit (8) from the dividend, attach it to 46 and continue: 468 / 59

Moving on to step 5:
59 goes into 468 7 times with a remainder of 55.
The next digit of our result is 7. 
Result so far: 687.0
If we take 413 away from 468, we end up with 55.
Fetch the next digit (3) from the dividend, attach it to 55 and continue: 553 / 59

Moving on to step 6:
59 goes into 553 9 times with a remainder of 22.
Put 9 as the next digit of the answer. 
Result so far: 6879.0
Subtracting 531 from 553 leaves us with 22.
Include the next digit (5) from the dividend after 22, then repeat: 225 / 59

On to step 7:
59 can be fit into 225 3 times, resulting in a remainder of 48.
Write down 3 as next digit of the result. 
Result so far: 68793.0
Subtract 177 from 225 to get 48.
Append the next digit (9) from the dividend to 48 and continue with: 489 / 59

Let's proceed to step 8:
59 can be fit into 489 8 times, resulting in a remainder of 17.
The next digit of our result is 8. 
Result so far: 687938.0
If we take 472 away from 489, we end up with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Let's proceed to step 9:
59 goes into 170 2 times with a remainder of 52.
Put 2 as the next digit of the answer. 
Result so far: 687938.2
If we subtract 118 from 170, we get 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

On to step 10:
520 divided by 59 is 8 with a remainder of 48.
Put 8 as the next digit of the answer. 
Result so far: 687938.28
If we take 472 away from 520, we end up with 48.
Since there are no more digits in the dividend, we add a zero to the remainder making it 480, and continue the process.

Going ahead to step 11:
The number 59 fits into 480 8 times, leaving a remainder of 8.
The number 8 becomes the next digit in our result. 
Result so far: 687938.288
Deduct 472 from 480 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

The quotient of the division is 687938.288, and the remainder is 0.0008.