We divide 40878445 by 126
Our goal is to divide 40878445 by 126.

Advancing to step 1:
126 can be fit into 4 0 times, resulting in a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 126

Step 2:
The number 126 fits into 40 0 times, leaving a remainder of 40.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 40 after subtracting 0 from 40.
Include the next digit (8) from the dividend after 40, then repeat: 408 / 126

Moving on to step 3:
The number 126 fits into 408 3 times, leaving a remainder of 30.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
If we subtract 378 from 408, we get 30.
Include the next digit (7) from the dividend after 30, then repeat: 307 / 126

Advancing to step 4:
If we divide 307 by 126, we get 2 and a remainder of 55.
Record the quotient 2 as the next digit in the result. 
Result so far: 32.0
Subtract 252 from 307 to get 55.
Grab the next digit (8) from the dividend, add it to 55, then carry on: 558 / 126

On to step 5:
The number 126 fits into 558 4 times, leaving a remainder of 54.
The number 4 becomes the next digit in our result. 
Result so far: 324.0
If we take 504 away from 558, we end up with 54.
Take the next digit (4) from the dividend and append it to 54, then repeat: 544 / 126

Let's proceed to step 6:
When dividing 544 by 126, we get 4 with a remainder of 40.
Record the quotient 4 as the next digit in the result. 
Result so far: 3244.0
The remainder is 40 after subtracting 504 from 544.
Take the next digit (4) from the dividend and append it to 40, then repeat: 404 / 126

Moving on to step 7:
126 can be fit into 404 3 times, resulting in a remainder of 26.
Write down 3 as next digit of the result. 
Result so far: 32443.0
If we take 378 away from 404, we end up with 26.
Append the next digit (5) from the dividend to 26 and continue with: 265 / 126

Step 8:
If we divide 265 by 126, we get 2 and a remainder of 13.
Write down 2 as next digit of the result. 
Result so far: 324432.0
Subtracting 252 from 265 leaves us with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Let's proceed to step 9:
The number 126 fits into 130 1 times, leaving a remainder of 4.
Record the quotient 1 as the next digit in the result. 
Result so far: 324432.1
Subtracting 126 from 130 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 10:
When dividing 40 by 126, we get 0 with a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 324432.1
If we take 0 away from 40, we end up with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Going ahead to step 11:
When dividing 400 by 126, we get 3 with a remainder of 22.
Use 3 as the next digit of our solution. 
Result so far: 324432.103
Subtract 378 from 400 to get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Moving on to step 12:
The number 126 fits into 220 1 times, leaving a remainder of 94.
The next digit of our result is 1. 
Result so far: 324432.1031
Deduct 126 from 220 and we're left with 94.
Since there are no more digits in the dividend, we add a zero to the remainder making it 940, and continue the process.

Step 13:
The number 126 fits into 940 7 times, leaving a remainder of 58.
Put 7 as the next digit of the answer. 
Result so far: 324432.10317
The remainder is 58 after subtracting 882 from 940.
Since there are no more digits in the dividend, we add a zero to the remainder making it 580, and continue the process.

Step 14:
When dividing 580 by 126, we get 4 with a remainder of 76.
Put 4 as the next digit of the answer. 
Result so far: 324432.103174
If we subtract 504 from 580, we get 76.
Since there are no more digits in the dividend, we add a zero to the remainder making it 760, and continue the process.

Let's proceed to step 15:
126 goes into 760 6 times with a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 324432.1031746
Subtracting 756 from 760 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 16:
126 can be fit into 40 0 times, resulting in a remainder of 40.
The next digit of our result is 0. 
Result so far: 324432.1031746
The remainder is 40 after subtracting 0 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

The quotient of the division is 324432.1031746, and the remainder is 4e-08.