40350319 ÷ 772 
Our goal is to divide 40350319 by 772.

Step 1:
772 goes into 4 0 times with a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 772

Let's proceed to step 2:
772 can be fit into 40 0 times, resulting in 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.
Append the next digit (3) from the dividend to 40 and continue with: 403 / 772

Let's proceed to step 3:
When dividing 403 by 772, we get 0 with a remainder of 403.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 403, we end up with 403.
Include the next digit (5) from the dividend after 403, then repeat: 4035 / 772

Step 4:
772 goes into 4035 5 times with a remainder of 175.
Write down 5 as next digit of the result. 
Result so far: 5.0
Deduct 3860 from 4035 and we're left with 175.
Include the next digit (0) from the dividend after 175, then repeat: 1750 / 772

Going ahead to step 5:
When dividing 1750 by 772, we get 2 with a remainder of 206.
Put 2 as the next digit of the answer. 
Result so far: 52.0
If we take 1544 away from 1750, we end up with 206.
Take the next digit (3) from the dividend and append it to 206, then repeat: 2063 / 772

On to step 6:
2063 divided by 772 is 2 with a remainder of 519.
Use 2 as the next digit of our solution. 
Result so far: 522.0
The remainder is 519 after subtracting 1544 from 2063.
Append the next digit (1) from the dividend to 519 and continue with: 5191 / 772

Going ahead to step 7:
5191 divided by 772 is 6 with a remainder of 559.
Use 6 as the next digit of our solution. 
Result so far: 5226.0
Subtract 4632 from 5191 to get 559.
Include the next digit (9) from the dividend after 559, then repeat: 5599 / 772

Moving on to step 8:
5599 divided by 772 is 7 with a remainder of 195.
The next digit of our result is 7. 
Result so far: 52267.0
If we take 5404 away from 5599, we end up with 195.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1950, and continue the process.

Going ahead to step 9:
The number 772 fits into 1950 2 times, leaving a remainder of 406.
Use 2 as the next digit of our solution. 
Result so far: 52267.2
If we subtract 1544 from 1950, we get 406.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4060, and continue the process.

Step 10:
The number 772 fits into 4060 5 times, leaving a remainder of 200.
Use 5 as the next digit of our solution. 
Result so far: 52267.25
If we subtract 3860 from 4060, we get 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2000, and continue the process.

Moving on to step 11:
When dividing 2000 by 772, we get 2 with a remainder of 456.
The next digit of our result is 2. 
Result so far: 52267.252
Subtract 1544 from 2000 to get 456.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4560, and continue the process.

Moving on to step 12:
772 can be fit into 4560 5 times, resulting in a remainder of 700.
The next digit of our result is 5. 
Result so far: 52267.2525
Subtracting 3860 from 4560 leaves us with 700.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7000, and continue the process.

Moving on to step 13:
When dividing 7000 by 772, we get 9 with a remainder of 52.
Use 9 as the next digit of our solution. 
Result so far: 52267.25259
If we take 6948 away from 7000, we end up with 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Moving on to step 14:
When dividing 520 by 772, we get 0 with a remainder of 520.
Use 0 as the next digit of our solution. 
Result so far: 52267.25259
If we take 0 away from 520, we end up with 520.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5200, and continue the process.

Moving on to step 15:
If we divide 5200 by 772, we get 6 and a remainder of 568.
Write down 6 as next digit of the result. 
Result so far: 52267.2525906
If we subtract 4632 from 5200, we get 568.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5680, and continue the process.

Step 16:
When dividing 5680 by 772, we get 7 with a remainder of 276.
The next digit of our result is 7. 
Result so far: 52267.25259067
If we take 5404 away from 5680, we end up with 276.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2760, and continue the process.

The final outcome is 52267.25259067, with a leftover of 2.76e-07.