40774877 divided by 843 
We want to figure out the number of times 40774877 can be divided by 843.

On to step 1:
The number 843 fits into 4 0 times, leaving a remainder of 4.
The number 0 becomes the next digit in our 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 / 843

Moving on to step 2:
40 divided by 843 is 0 with a remainder of 40.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 40 to get 40.
Fetch the next digit (7) from the dividend, attach it to 40 and continue: 407 / 843

On to step 3:
If we divide 407 by 843, we get 0 and a remainder of 407.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 407, we end up with 407.
Grab the next digit (7) from the dividend, add it to 407, then carry on: 4077 / 843

Step 4:
843 can be fit into 4077 4 times, resulting in a remainder of 705.
The next digit of our result is 4. 
Result so far: 4.0
Subtract 3372 from 4077 to get 705.
Append the next digit (4) from the dividend to 705 and continue with: 7054 / 843

Moving on to step 5:
843 can be fit into 7054 8 times, resulting in a remainder of 310.
The number 8 becomes the next digit in our result. 
Result so far: 48.0
Subtracting 6744 from 7054 leaves us with 310.
Fetch the next digit (8) from the dividend, attach it to 310 and continue: 3108 / 843

Moving on to step 6:
3108 divided by 843 is 3 with a remainder of 579.
Write down 3 as next digit of the result. 
Result so far: 483.0
If we take 2529 away from 3108, we end up with 579.
Grab the next digit (7) from the dividend, add it to 579, then carry on: 5797 / 843

Step 7:
The number 843 fits into 5797 6 times, leaving a remainder of 739.
Write down 6 as next digit of the result. 
Result so far: 4836.0
Deduct 5058 from 5797 and we're left with 739.
Fetch the next digit (7) from the dividend, attach it to 739 and continue: 7397 / 843

Advancing to step 8:
843 goes into 7397 8 times with a remainder of 653.
The next digit of our result is 8. 
Result so far: 48368.0
Subtracting 6744 from 7397 leaves us with 653.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6530, and continue the process.

Moving on to step 9:
When dividing 6530 by 843, we get 7 with a remainder of 629.
The number 7 becomes the next digit in our result. 
Result so far: 48368.7
If we take 5901 away from 6530, we end up with 629.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6290, and continue the process.

Going ahead to step 10:
If we divide 6290 by 843, we get 7 and a remainder of 389.
Put 7 as the next digit of the answer. 
Result so far: 48368.77
Subtracting 5901 from 6290 leaves us with 389.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3890, and continue the process.

The quotient of the division is 48368.77, and the remainder is 0.389.