We're dividing 40840578 by 59 
We want to figure out the number of times 40840578 can be divided by 59.

Going ahead to step 1:
59 can be fit into 4 0 times, resulting in a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 59

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
If we subtract 0 from 40, we get 40.
Take the next digit (8) from the dividend and append it to 40, then repeat: 408 / 59

Let's proceed to step 3:
408 divided by 59 is 6 with a remainder of 54.
Record the quotient 6 as the next digit in the result. 
Result so far: 6.0
Subtract 354 from 408 to get 54.
Grab the next digit (4) from the dividend, add it to 54, then carry on: 544 / 59

On to step 4:
When dividing 544 by 59, we get 9 with a remainder of 13.
Record the quotient 9 as the next digit in the result. 
Result so far: 69.0
If we take 531 away from 544, we end up with 13.
Grab the next digit (0) from the dividend, add it to 13, then carry on: 130 / 59

Advancing to step 5:
When dividing 130 by 59, we get 2 with a remainder of 12.
Put 2 as the next digit of the answer. 
Result so far: 692.0
Subtract 118 from 130 to get 12.
Bring next digit (5) of the dividend behind the 12 and repeat the process: 125 / 59

Step 6:
59 can be fit into 125 2 times, resulting in a remainder of 7.
Write down 2 as next digit of the result. 
Result so far: 6922.0
Deduct 118 from 125 and we're left with 7.
Grab the next digit (7) from the dividend, add it to 7, then carry on: 77 / 59

On to step 7:
77 divided by 59 is 1 with a remainder of 18.
The number 1 becomes the next digit in our result. 
Result so far: 69221.0
If we take 59 away from 77, we end up with 18.
Bring next digit (8) of the dividend behind the 18 and repeat the process: 188 / 59

Let's proceed to step 8:
When dividing 188 by 59, we get 3 with a remainder of 11.
Put 3 as the next digit of the answer. 
Result so far: 692213.0
If we take 177 away from 188, we end up with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Advancing to step 9:
59 goes into 110 1 times with a remainder of 51.
Record the quotient 1 as the next digit in the result. 
Result so far: 692213.1
Subtracting 59 from 110 leaves us with 51.
Since there are no more digits in the dividend, we add a zero to the remainder making it 510, and continue the process.

Advancing to step 10:
510 divided by 59 is 8 with a remainder of 38.
The number 8 becomes the next digit in our result. 
Result so far: 692213.18
Subtracting 472 from 510 leaves us with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

On to step 11:
When dividing 380 by 59, we get 6 with a remainder of 26.
The next digit of our result is 6. 
Result so far: 692213.186
Subtract 354 from 380 to get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Let's proceed to step 12:
When dividing 260 by 59, we get 4 with a remainder of 24.
Write down 4 as next digit of the result. 
Result so far: 692213.1864
If we subtract 236 from 260, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Step 13:
When dividing 240 by 59, we get 4 with a remainder of 4.
Record the quotient 4 as the next digit in the result. 
Result so far: 692213.18644
If we subtract 236 from 240, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

The final result is 692213.18644 with a remainder of 4e-06.