40779120 divided by 585 
We're looking to find how many times 585 goes into 40779120.

Let's proceed to step 1:
The number 585 fits into 4 0 times, leaving a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 585

On to step 2:
585 goes into 40 0 times with a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Take the next digit (7) from the dividend and append it to 40, then repeat: 407 / 585

Moving on to step 3:
585 goes into 407 0 times with a remainder of 407.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 407 leaves us with 407.
Take the next digit (7) from the dividend and append it to 407, then repeat: 4077 / 585

Advancing to step 4:
4077 divided by 585 is 6 with a remainder of 567.
Put 6 as the next digit of the answer. 
Result so far: 6.0
If we take 3510 away from 4077, we end up with 567.
Fetch the next digit (9) from the dividend, attach it to 567 and continue: 5679 / 585

Going ahead to step 5:
If we divide 5679 by 585, we get 9 and a remainder of 414.
Use 9 as the next digit of our solution. 
Result so far: 69.0
If we take 5265 away from 5679, we end up with 414.
Bring next digit (1) of the dividend behind the 414 and repeat the process: 4141 / 585

On to step 6:
585 goes into 4141 7 times with a remainder of 46.
The number 7 becomes the next digit in our result. 
Result so far: 697.0
Deduct 4095 from 4141 and we're left with 46.
Fetch the next digit (2) from the dividend, attach it to 46 and continue: 462 / 585

Step 7:
The number 585 fits into 462 0 times, leaving a remainder of 462.
Record the quotient 0 as the next digit in the result. 
Result so far: 6970.0
Subtracting 0 from 462 leaves us with 462.
Include the next digit (0) from the dividend after 462, then repeat: 4620 / 585

Step 8:
4620 divided by 585 is 7 with a remainder of 525.
Put 7 as the next digit of the answer. 
Result so far: 69707.0
The remainder is 525 after subtracting 4095 from 4620.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5250, and continue the process.

Advancing to step 9:
585 goes into 5250 8 times with a remainder of 570.
Put 8 as the next digit of the answer. 
Result so far: 69707.8
If we subtract 4680 from 5250, we get 570.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5700, and continue the process.

On to step 10:
If we divide 5700 by 585, we get 9 and a remainder of 435.
The next digit of our result is 9. 
Result so far: 69707.89
The remainder is 435 after subtracting 5265 from 5700.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4350, and continue the process.

Let's proceed to step 11:
585 goes into 4350 7 times with a remainder of 255.
Use 7 as the next digit of our solution. 
Result so far: 69707.897
If we subtract 4095 from 4350, we get 255.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2550, and continue the process.

On to step 12:
If we divide 2550 by 585, we get 4 and a remainder of 210.
The next digit of our result is 4. 
Result so far: 69707.8974
Deduct 2340 from 2550 and we're left with 210.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2100, and continue the process.

Let's proceed to step 13:
If we divide 2100 by 585, we get 3 and a remainder of 345.
The next digit of our result is 3. 
Result so far: 69707.89743
If we take 1755 away from 2100, we end up with 345.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3450, and continue the process.

On to step 14:
The number 585 fits into 3450 5 times, leaving a remainder of 525.
Use 5 as the next digit of our solution. 
Result so far: 69707.897435
The remainder is 525 after subtracting 2925 from 3450.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5250, and continue the process.

Going ahead to step 15:
5250 divided by 585 is 8 with a remainder of 570.
Put 8 as the next digit of the answer. 
Result so far: 69707.8974358
Subtracting 4680 from 5250 leaves us with 570.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5700, and continue the process.

Advancing to step 16:
585 can be fit into 5700 9 times, resulting in a remainder of 435.
The next digit of our result is 9. 
Result so far: 69707.89743589
If we subtract 5265 from 5700, we get 435.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4350, and continue the process.

The final outcome is 69707.89743589, with a leftover of 4.35e-07.