40494051 divided by 126 
Our goal is to divide 40494051 by 126.

On to step 1:
126 goes into 4 0 times with a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 126

Advancing to step 2:
When dividing 40 by 126, we get 0 with a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Include the next digit (4) from the dividend after 40, then repeat: 404 / 126

Step 3:
When dividing 404 by 126, we get 3 with a remainder of 26.
Write down 3 as next digit of the result. 
Result so far: 3.0
Deduct 378 from 404 and we're left with 26.
Fetch the next digit (9) from the dividend, attach it to 26 and continue: 269 / 126

Step 4:
If we divide 269 by 126, we get 2 and a remainder of 17.
The next digit of our result is 2. 
Result so far: 32.0
If we subtract 252 from 269, we get 17.
Append the next digit (4) from the dividend to 17 and continue with: 174 / 126

Going ahead to step 5:
The number 126 fits into 174 1 times, leaving a remainder of 48.
Use 1 as the next digit of our solution. 
Result so far: 321.0
The remainder is 48 after subtracting 126 from 174.
Bring next digit (0) of the dividend behind the 48 and repeat the process: 480 / 126

Going ahead to step 6:
480 divided by 126 is 3 with a remainder of 102.
The next digit of our result is 3. 
Result so far: 3213.0
The remainder is 102 after subtracting 378 from 480.
Include the next digit (5) from the dividend after 102, then repeat: 1025 / 126

Step 7:
126 goes into 1025 8 times with a remainder of 17.
Put 8 as the next digit of the answer. 
Result so far: 32138.0
If we take 1008 away from 1025, we end up with 17.
Append the next digit (1) from the dividend to 17 and continue with: 171 / 126

Advancing to step 8:
The number 126 fits into 171 1 times, leaving a remainder of 45.
Put 1 as the next digit of the answer. 
Result so far: 321381.0
Subtract 126 from 171 to get 45.
Since there are no more digits in the dividend, we add a zero to the remainder making it 450, and continue the process.

Moving on to step 9:
126 can be fit into 450 3 times, resulting in a remainder of 72.
Use 3 as the next digit of our solution. 
Result so far: 321381.3
Subtracting 378 from 450 leaves us with 72.
Since there are no more digits in the dividend, we add a zero to the remainder making it 720, and continue the process.

Moving on to step 10:
When dividing 720 by 126, we get 5 with a remainder of 90.
The number 5 becomes the next digit in our result. 
Result so far: 321381.35
Deduct 630 from 720 and we're left with 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 900, and continue the process.

Going ahead to step 11:
If we divide 900 by 126, we get 7 and a remainder of 18.
Record the quotient 7 as the next digit in the result. 
Result so far: 321381.357
Subtract 882 from 900 to get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Step 12:
180 divided by 126 is 1 with a remainder of 54.
Write down 1 as next digit of the result. 
Result so far: 321381.3571
If we subtract 126 from 180, we get 54.
Since there are no more digits in the dividend, we add a zero to the remainder making it 540, and continue the process.

Step 13:
If we divide 540 by 126, we get 4 and a remainder of 36.
Put 4 as the next digit of the answer. 
Result so far: 321381.35714
The remainder is 36 after subtracting 504 from 540.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Step 14:
The number 126 fits into 360 2 times, leaving a remainder of 108.
Write down 2 as next digit of the result. 
Result so far: 321381.357142
Deduct 252 from 360 and we're left with 108.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1080, and continue the process.

Going ahead to step 15:
The number 126 fits into 1080 8 times, leaving a remainder of 72.
The number 8 becomes the next digit in our result. 
Result so far: 321381.3571428
The remainder is 72 after subtracting 1008 from 1080.
Since there are no more digits in the dividend, we add a zero to the remainder making it 720, and continue the process.

Step 16:
720 divided by 126 is 5 with a remainder of 90.
Write down 5 as next digit of the result. 
Result so far: 321381.35714285
Deduct 630 from 720 and we're left with 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 900, and continue the process.

Our division results in 321381.35714285 with a remaining 9e-08.