40029790 ÷ 767 
We're looking to find how many times 767 goes into 40029790.

Advancing to step 1:
767 can be fit into 4 0 times, resulting in a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 767

Advancing to step 2:
The number 767 fits into 40 0 times, leaving a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 40 to get 40.
Bring next digit (0) of the dividend behind the 40 and repeat the process: 400 / 767

Let's proceed to step 3:
When dividing 400 by 767, we get 0 with a remainder of 400.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 400, we end up with 400.
Grab the next digit (2) from the dividend, add it to 400, then carry on: 4002 / 767

On to step 4:
4002 divided by 767 is 5 with a remainder of 167.
Write down 5 as next digit of the result. 
Result so far: 5.0
Subtracting 3835 from 4002 leaves us with 167.
Fetch the next digit (9) from the dividend, attach it to 167 and continue: 1679 / 767

Step 5:
The number 767 fits into 1679 2 times, leaving a remainder of 145.
The number 2 becomes the next digit in our result. 
Result so far: 52.0
The remainder is 145 after subtracting 1534 from 1679.
Bring next digit (7) of the dividend behind the 145 and repeat the process: 1457 / 767

Moving on to step 6:
When dividing 1457 by 767, we get 1 with a remainder of 690.
Write down 1 as next digit of the result. 
Result so far: 521.0
Deduct 767 from 1457 and we're left with 690.
Include the next digit (9) from the dividend after 690, then repeat: 6909 / 767

Let's proceed to step 7:
If we divide 6909 by 767, we get 9 and a remainder of 6.
The number 9 becomes the next digit in our result. 
Result so far: 5219.0
Subtract 6903 from 6909 to get 6.
Bring next digit (0) of the dividend behind the 6 and repeat the process: 60 / 767

Step 8:
If we divide 60 by 767, we get 0 and a remainder of 60.
Put 0 as the next digit of the answer. 
Result so far: 52190.0
Subtracting 0 from 60 leaves us with 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 600, and continue the process.

Step 9:
When dividing 600 by 767, we get 0 with a remainder of 600.
Record the quotient 0 as the next digit in the result. 
Result so far: 52190.0
Subtracting 0 from 600 leaves us with 600.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6000, and continue the process.

Advancing to step 10:
If we divide 6000 by 767, we get 7 and a remainder of 631.
The number 7 becomes the next digit in our result. 
Result so far: 52190.07
Subtracting 5369 from 6000 leaves us with 631.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6310, and continue the process.

On to step 11:
When dividing 6310 by 767, we get 8 with a remainder of 174.
Use 8 as the next digit of our solution. 
Result so far: 52190.078
The remainder is 174 after subtracting 6136 from 6310.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1740, and continue the process.

Moving on to step 12:
The number 767 fits into 1740 2 times, leaving a remainder of 206.
The number 2 becomes the next digit in our result. 
Result so far: 52190.0782
Subtract 1534 from 1740 to get 206.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2060, and continue the process.

Let's proceed to step 13:
If we divide 2060 by 767, we get 2 and a remainder of 526.
The number 2 becomes the next digit in our result. 
Result so far: 52190.07822
Subtract 1534 from 2060 to get 526.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5260, and continue the process.

Our division results in 52190.07822 with a remaining 0.000526.