We're dividing 40128975 by 822 
We want to divide 40128975 by 822.

Going ahead to step 1:
822 can be fit into 4 0 times, resulting in a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 822

Let's proceed to step 2:
The number 822 fits into 40 0 times, leaving a remainder of 40.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 40, we get 40.
Append the next digit (1) from the dividend to 40 and continue with: 401 / 822

Let's proceed to step 3:
The number 822 fits into 401 0 times, leaving a remainder of 401.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 401 to get 401.
Include the next digit (2) from the dividend after 401, then repeat: 4012 / 822

On to step 4:
4012 divided by 822 is 4 with a remainder of 724.
Write down 4 as next digit of the result. 
Result so far: 4.0
Subtracting 3288 from 4012 leaves us with 724.
Take the next digit (8) from the dividend and append it to 724, then repeat: 7248 / 822

Step 5:
822 can be fit into 7248 8 times, resulting in a remainder of 672.
The next digit of our result is 8. 
Result so far: 48.0
Subtracting 6576 from 7248 leaves us with 672.
Take the next digit (9) from the dividend and append it to 672, then repeat: 6729 / 822

Advancing to step 6:
822 goes into 6729 8 times with a remainder of 153.
The number 8 becomes the next digit in our result. 
Result so far: 488.0
Subtracting 6576 from 6729 leaves us with 153.
Grab the next digit (7) from the dividend, add it to 153, then carry on: 1537 / 822

Moving on to step 7:
822 can be fit into 1537 1 times, resulting in a remainder of 715.
Use 1 as the next digit of our solution. 
Result so far: 4881.0
If we subtract 822 from 1537, we get 715.
Append the next digit (5) from the dividend to 715 and continue with: 7155 / 822

Step 8:
When dividing 7155 by 822, we get 8 with a remainder of 579.
Record the quotient 8 as the next digit in the result. 
Result so far: 48818.0
Subtracting 6576 from 7155 leaves us with 579.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5790, and continue the process.

Let's proceed to step 9:
If we divide 5790 by 822, we get 7 and a remainder of 36.
Use 7 as the next digit of our solution. 
Result so far: 48818.7
If we subtract 5754 from 5790, we get 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

On to step 10:
The number 822 fits into 360 0 times, leaving a remainder of 360.
The number 0 becomes the next digit in our result. 
Result so far: 48818.7
Subtracting 0 from 360 leaves us with 360.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3600, and continue the process.

Going ahead to step 11:
822 goes into 3600 4 times with a remainder of 312.
The number 4 becomes the next digit in our result. 
Result so far: 48818.704
If we take 3288 away from 3600, we end up with 312.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3120, and continue the process.

Let's proceed to step 12:
822 can be fit into 3120 3 times, resulting in a remainder of 654.
The number 3 becomes the next digit in our result. 
Result so far: 48818.7043
If we take 2466 away from 3120, we end up with 654.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6540, and continue the process.

Let's proceed to step 13:
If we divide 6540 by 822, we get 7 and a remainder of 786.
Put 7 as the next digit of the answer. 
Result so far: 48818.70437
Deduct 5754 from 6540 and we're left with 786.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7860, and continue the process.

Step 14:
7860 divided by 822 is 9 with a remainder of 462.
Write down 9 as next digit of the result. 
Result so far: 48818.704379
Subtract 7398 from 7860 to get 462.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4620, and continue the process.

Step 15:
4620 divided by 822 is 5 with a remainder of 510.
The number 5 becomes the next digit in our result. 
Result so far: 48818.7043795
If we take 4110 away from 4620, we end up with 510.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5100, and continue the process.

Let's proceed to step 16:
When dividing 5100 by 822, we get 6 with a remainder of 168.
Record the quotient 6 as the next digit in the result. 
Result so far: 48818.70437956
Deduct 4932 from 5100 and we're left with 168.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1680, and continue the process.

In conclusion, the division gives 48818.70437956 with a balance of 1.68e-07.