We're dividing 40222374 by 821 
Let's see how many times 821 fits into 40222374.

Let's proceed to step 1:
The number 821 fits into 4 0 times, leaving a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 821

Let's proceed to step 2:
The number 821 fits into 40 0 times, leaving a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 40, we get 40.
Include the next digit (2) from the dividend after 40, then repeat: 402 / 821

Step 3:
402 divided by 821 is 0 with a remainder of 402.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 402 and we're left with 402.
Bring next digit (2) of the dividend behind the 402 and repeat the process: 4022 / 821

Advancing to step 4:
4022 divided by 821 is 4 with a remainder of 738.
Use 4 as the next digit of our solution. 
Result so far: 4.0
The remainder is 738 after subtracting 3284 from 4022.
Bring next digit (2) of the dividend behind the 738 and repeat the process: 7382 / 821

Advancing to step 5:
7382 divided by 821 is 8 with a remainder of 814.
Use 8 as the next digit of our solution. 
Result so far: 48.0
Subtract 6568 from 7382 to get 814.
Grab the next digit (3) from the dividend, add it to 814, then carry on: 8143 / 821

Advancing to step 6:
The number 821 fits into 8143 9 times, leaving a remainder of 754.
Put 9 as the next digit of the answer. 
Result so far: 489.0
Deduct 7389 from 8143 and we're left with 754.
Include the next digit (7) from the dividend after 754, then repeat: 7547 / 821

Let's proceed to step 7:
821 can be fit into 7547 9 times, resulting in a remainder of 158.
The number 9 becomes the next digit in our result. 
Result so far: 4899.0
The remainder is 158 after subtracting 7389 from 7547.
Fetch the next digit (4) from the dividend, attach it to 158 and continue: 1584 / 821

Step 8:
The number 821 fits into 1584 1 times, leaving a remainder of 763.
Put 1 as the next digit of the answer. 
Result so far: 48991.0
Subtracting 821 from 1584 leaves us with 763.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7630, and continue the process.

Going ahead to step 9:
If we divide 7630 by 821, we get 9 and a remainder of 241.
Use 9 as the next digit of our solution. 
Result so far: 48991.9
If we subtract 7389 from 7630, we get 241.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2410, and continue the process.

On to step 10:
When dividing 2410 by 821, we get 2 with a remainder of 768.
Put 2 as the next digit of the answer. 
Result so far: 48991.92
Subtracting 1642 from 2410 leaves us with 768.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7680, and continue the process.

On to step 11:
The number 821 fits into 7680 9 times, leaving a remainder of 291.
The number 9 becomes the next digit in our result. 
Result so far: 48991.929
If we take 7389 away from 7680, we end up with 291.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2910, and continue the process.

Step 12:
If we divide 2910 by 821, we get 3 and a remainder of 447.
Put 3 as the next digit of the answer. 
Result so far: 48991.9293
If we subtract 2463 from 2910, we get 447.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4470, and continue the process.

Moving on to step 13:
821 goes into 4470 5 times with a remainder of 365.
Write down 5 as next digit of the result. 
Result so far: 48991.92935
Deduct 4105 from 4470 and we're left with 365.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3650, and continue the process.

Let's proceed to step 14:
If we divide 3650 by 821, we get 4 and a remainder of 366.
Record the quotient 4 as the next digit in the result. 
Result so far: 48991.929354
Deduct 3284 from 3650 and we're left with 366.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3660, and continue the process.

Step 15:
821 can be fit into 3660 4 times, resulting in a remainder of 376.
Use 4 as the next digit of our solution. 
Result so far: 48991.9293544
Subtract 3284 from 3660 to get 376.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3760, and continue the process.

After the division, we end up with 48991.9293544 and a remainder of 3.76e-06.