40778540 divided by 729 
We want to figure out the number of times 40778540 can be divided by 729.

Going ahead to step 1:
When dividing 4 by 729, we get 0 with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 729

Advancing to step 2:
729 can be fit into 40 0 times, resulting in a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 40, we end up with 40.
Fetch the next digit (7) from the dividend, attach it to 40 and continue: 407 / 729

On to step 3:
729 can be fit into 407 0 times, resulting in 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 / 729

Step 4:
729 can be fit into 4077 5 times, resulting in a remainder of 432.
Record the quotient 5 as the next digit in the result. 
Result so far: 5.0
Subtracting 3645 from 4077 leaves us with 432.
Take the next digit (8) from the dividend and append it to 432, then repeat: 4328 / 729

On to step 5:
4328 divided by 729 is 5 with a remainder of 683.
The number 5 becomes the next digit in our result. 
Result so far: 55.0
Subtract 3645 from 4328 to get 683.
Grab the next digit (5) from the dividend, add it to 683, then carry on: 6835 / 729

Step 6:
729 can be fit into 6835 9 times, resulting in a remainder of 274.
The number 9 becomes the next digit in our result. 
Result so far: 559.0
If we take 6561 away from 6835, we end up with 274.
Bring next digit (4) of the dividend behind the 274 and repeat the process: 2744 / 729

Let's proceed to step 7:
If we divide 2744 by 729, we get 3 and a remainder of 557.
Use 3 as the next digit of our solution. 
Result so far: 5593.0
The remainder is 557 after subtracting 2187 from 2744.
Take the next digit (0) from the dividend and append it to 557, then repeat: 5570 / 729

Going ahead to step 8:
When dividing 5570 by 729, we get 7 with a remainder of 467.
Record the quotient 7 as the next digit in the result. 
Result so far: 55937.0
Deduct 5103 from 5570 and we're left with 467.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4670, and continue the process.

On to step 9:
The number 729 fits into 4670 6 times, leaving a remainder of 296.
Use 6 as the next digit of our solution. 
Result so far: 55937.6
Subtract 4374 from 4670 to get 296.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2960, and continue the process.

Let's proceed to step 10:
The number 729 fits into 2960 4 times, leaving a remainder of 44.
Use 4 as the next digit of our solution. 
Result so far: 55937.64
The remainder is 44 after subtracting 2916 from 2960.
Since there are no more digits in the dividend, we add a zero to the remainder making it 440, and continue the process.

Advancing to step 11:
729 can be fit into 440 0 times, resulting in a remainder of 440.
Put 0 as the next digit of the answer. 
Result so far: 55937.64
If we take 0 away from 440, we end up with 440.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4400, and continue the process.

Step 12:
When dividing 4400 by 729, we get 6 with a remainder of 26.
Record the quotient 6 as the next digit in the result. 
Result so far: 55937.6406
Subtracting 4374 from 4400 leaves us with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Step 13:
729 can be fit into 260 0 times, resulting in a remainder of 260.
The number 0 becomes the next digit in our result. 
Result so far: 55937.6406
If we subtract 0 from 260, we get 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2600, and continue the process.

Going ahead to step 14:
When dividing 2600 by 729, we get 3 with a remainder of 413.
The number 3 becomes the next digit in our result. 
Result so far: 55937.640603
Subtracting 2187 from 2600 leaves us with 413.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4130, and continue the process.

Moving on to step 15:
If we divide 4130 by 729, we get 5 and a remainder of 485.
Put 5 as the next digit of the answer. 
Result so far: 55937.6406035
Subtract 3645 from 4130 to get 485.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4850, and continue the process.

Moving on to step 16:
The number 729 fits into 4850 6 times, leaving a remainder of 476.
The next digit of our result is 6. 
Result so far: 55937.64060356
The remainder is 476 after subtracting 4374 from 4850.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4760, and continue the process.

After the division, we end up with 55937.64060356 and a remainder of 4.76e-07.