40821015 ÷ 767 
Our goal is to divide 40821015 by 767.

Moving on to step 1:
4 divided by 767 is 0 with a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 767

Moving on to step 2:
767 goes into 40 0 times with a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Bring next digit (8) of the dividend behind the 40 and repeat the process: 408 / 767

Moving on to step 3:
The number 767 fits into 408 0 times, leaving a remainder of 408.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 408, we end up with 408.
Take the next digit (2) from the dividend and append it to 408, then repeat: 4082 / 767

On to step 4:
4082 divided by 767 is 5 with a remainder of 247.
Use 5 as the next digit of our solution. 
Result so far: 5.0
Subtracting 3835 from 4082 leaves us with 247.
Append the next digit (1) from the dividend to 247 and continue with: 2471 / 767

Advancing to step 5:
If we divide 2471 by 767, we get 3 and a remainder of 170.
The number 3 becomes the next digit in our result. 
Result so far: 53.0
If we subtract 2301 from 2471, we get 170.
Bring next digit (0) of the dividend behind the 170 and repeat the process: 1700 / 767

Advancing to step 6:
When dividing 1700 by 767, we get 2 with a remainder of 166.
Use 2 as the next digit of our solution. 
Result so far: 532.0
Subtracting 1534 from 1700 leaves us with 166.
Fetch the next digit (1) from the dividend, attach it to 166 and continue: 1661 / 767

Step 7:
767 can be fit into 1661 2 times, resulting in a remainder of 127.
Write down 2 as next digit of the result. 
Result so far: 5322.0
Subtracting 1534 from 1661 leaves us with 127.
Append the next digit (5) from the dividend to 127 and continue with: 1275 / 767

Advancing to step 8:
The number 767 fits into 1275 1 times, leaving a remainder of 508.
The number 1 becomes the next digit in our result. 
Result so far: 53221.0
Deduct 767 from 1275 and we're left with 508.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5080, and continue the process.

On to step 9:
The number 767 fits into 5080 6 times, leaving a remainder of 478.
Write down 6 as next digit of the result. 
Result so far: 53221.6
If we subtract 4602 from 5080, we get 478.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4780, and continue the process.

Moving on to step 10:
767 goes into 4780 6 times with a remainder of 178.
Record the quotient 6 as the next digit in the result. 
Result so far: 53221.66
Subtracting 4602 from 4780 leaves us with 178.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1780, and continue the process.

The quotient of the division is 53221.66, and the remainder is 0.178.