We're dividing 40028763 by 126 
We want to divide 40028763 by 126.

On to step 1:
When dividing 4 by 126, we get 0 with a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 126

Going ahead to step 2:
The number 126 fits into 40 0 times, leaving a remainder of 40.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Grab the next digit (0) from the dividend, add it to 40, then carry on: 400 / 126

Let's proceed to step 3:
When dividing 400 by 126, we get 3 with a remainder of 22.
Write down 3 as next digit of the result. 
Result so far: 3.0
If we subtract 378 from 400, we get 22.
Fetch the next digit (2) from the dividend, attach it to 22 and continue: 222 / 126

Advancing to step 4:
126 goes into 222 1 times with a remainder of 96.
Use 1 as the next digit of our solution. 
Result so far: 31.0
The remainder is 96 after subtracting 126 from 222.
Bring next digit (8) of the dividend behind the 96 and repeat the process: 968 / 126

Advancing to step 5:
126 goes into 968 7 times with a remainder of 86.
Record the quotient 7 as the next digit in the result. 
Result so far: 317.0
Deduct 882 from 968 and we're left with 86.
Bring next digit (7) of the dividend behind the 86 and repeat the process: 867 / 126

On to step 6:
The number 126 fits into 867 6 times, leaving a remainder of 111.
Put 6 as the next digit of the answer. 
Result so far: 3176.0
Subtracting 756 from 867 leaves us with 111.
Fetch the next digit (6) from the dividend, attach it to 111 and continue: 1116 / 126

Moving on to step 7:
1116 divided by 126 is 8 with a remainder of 108.
Use 8 as the next digit of our solution. 
Result so far: 31768.0
If we take 1008 away from 1116, we end up with 108.
Append the next digit (3) from the dividend to 108 and continue with: 1083 / 126

Going ahead to step 8:
The number 126 fits into 1083 8 times, leaving a remainder of 75.
The number 8 becomes the next digit in our result. 
Result so far: 317688.0
Subtract 1008 from 1083 to get 75.
Since there are no more digits in the dividend, we add a zero to the remainder making it 750, and continue the process.

Let's proceed to step 9:
126 can be fit into 750 5 times, resulting in a remainder of 120.
The next digit of our result is 5. 
Result so far: 317688.5
Subtracting 630 from 750 leaves us with 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1200, and continue the process.

Advancing to step 10:
126 can be fit into 1200 9 times, resulting in a remainder of 66.
Use 9 as the next digit of our solution. 
Result so far: 317688.59
Subtract 1134 from 1200 to get 66.
Since there are no more digits in the dividend, we add a zero to the remainder making it 660, and continue the process.

Step 11:
126 goes into 660 5 times with a remainder of 30.
Write down 5 as next digit of the result. 
Result so far: 317688.595
If we subtract 630 from 660, we get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Step 12:
126 can be fit into 300 2 times, resulting in a remainder of 48.
The number 2 becomes the next digit in our result. 
Result so far: 317688.5952
Subtracting 252 from 300 leaves us with 48.
Since there are no more digits in the dividend, we add a zero to the remainder making it 480, and continue the process.

Going ahead to step 13:
126 can be fit into 480 3 times, resulting in a remainder of 102.
The number 3 becomes the next digit in our result. 
Result so far: 317688.59523
Subtracting 378 from 480 leaves us with 102.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1020, and continue the process.

Advancing to step 14:
When dividing 1020 by 126, we get 8 with a remainder of 12.
Write down 8 as next digit of the result. 
Result so far: 317688.595238
The remainder is 12 after subtracting 1008 from 1020.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

On to step 15:
The number 126 fits into 120 0 times, leaving a remainder of 120.
Write down 0 as next digit of the result. 
Result so far: 317688.595238
If we take 0 away from 120, we end up with 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1200, and continue the process.

On to step 16:
126 goes into 1200 9 times with a remainder of 66.
Record the quotient 9 as the next digit in the result. 
Result so far: 317688.59523809
Subtract 1134 from 1200 to get 66.
Since there are no more digits in the dividend, we add a zero to the remainder making it 660, and continue the process.

After the division, we end up with 317688.59523809 and a remainder of 6.6e-08.