We look at the division of 40357222 by 126 
Our goal is to divide 40357222 by 126.

Step 1:
If we divide 4 by 126, we get 0 and a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 126

Going ahead to step 2:
When dividing 40 by 126, we get 0 with a remainder of 40.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Append the next digit (3) from the dividend to 40 and continue with: 403 / 126

On to step 3:
When dividing 403 by 126, we get 3 with a remainder of 25.
The next digit of our result is 3. 
Result so far: 3.0
Subtract 378 from 403 to get 25.
Grab the next digit (5) from the dividend, add it to 25, then carry on: 255 / 126

Let's proceed to step 4:
126 goes into 255 2 times with a remainder of 3.
The number 2 becomes the next digit in our result. 
Result so far: 32.0
Subtract 252 from 255 to get 3.
Fetch the next digit (7) from the dividend, attach it to 3 and continue: 37 / 126

Going ahead to step 5:
126 can be fit into 37 0 times, resulting in a remainder of 37.
Write down 0 as next digit of the result. 
Result so far: 320.0
If we subtract 0 from 37, we get 37.
Bring next digit (2) of the dividend behind the 37 and repeat the process: 372 / 126

Step 6:
126 can be fit into 372 2 times, resulting in a remainder of 120.
The next digit of our result is 2. 
Result so far: 3202.0
Subtracting 252 from 372 leaves us with 120.
Append the next digit (2) from the dividend to 120 and continue with: 1202 / 126

Advancing to step 7:
126 goes into 1202 9 times with a remainder of 68.
Use 9 as the next digit of our solution. 
Result so far: 32029.0
The remainder is 68 after subtracting 1134 from 1202.
Fetch the next digit (2) from the dividend, attach it to 68 and continue: 682 / 126

Moving on to step 8:
When dividing 682 by 126, we get 5 with a remainder of 52.
Put 5 as the next digit of the answer. 
Result so far: 320295.0
If we take 630 away from 682, 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 9:
126 goes into 520 4 times with a remainder of 16.
The number 4 becomes the next digit in our result. 
Result so far: 320295.4
Subtracting 504 from 520 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Going ahead to step 10:
160 divided by 126 is 1 with a remainder of 34.
Record the quotient 1 as the next digit in the result. 
Result so far: 320295.41
The remainder is 34 after subtracting 126 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Let's proceed to step 11:
When dividing 340 by 126, we get 2 with a remainder of 88.
Use 2 as the next digit of our solution. 
Result so far: 320295.412
Subtracting 252 from 340 leaves us with 88.
Since there are no more digits in the dividend, we add a zero to the remainder making it 880, and continue the process.

Step 12:
If we divide 880 by 126, we get 6 and a remainder of 124.
The number 6 becomes the next digit in our result. 
Result so far: 320295.4126
If we take 756 away from 880, we end up with 124.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1240, and continue the process.

Going ahead to step 13:
126 goes into 1240 9 times with a remainder of 106.
Record the quotient 9 as the next digit in the result. 
Result so far: 320295.41269
If we subtract 1134 from 1240, we get 106.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1060, and continue the process.

On to step 14:
1060 divided by 126 is 8 with a remainder of 52.
The number 8 becomes the next digit in our result. 
Result so far: 320295.412698
If we take 1008 away from 1060, 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 15:
520 divided by 126 is 4 with a remainder of 16.
Put 4 as the next digit of the answer. 
Result so far: 320295.4126984
Deduct 504 from 520 and we're left with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

On to step 16:
160 divided by 126 is 1 with a remainder of 34.
Put 1 as the next digit of the answer. 
Result so far: 320295.41269841
If we take 126 away from 160, we end up with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

The final result is 320295.41269841 with a remainder of 3.4e-08.