40116798 divided by 873 
We want to divide 40116798 by 873.

Moving on to step 1:
If we divide 4 by 873, we get 0 and a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 873

On to step 2:
873 can be fit into 40 0 times, resulting in a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 40, we end up with 40.
Fetch the next digit (1) from the dividend, attach it to 40 and continue: 401 / 873

Advancing to step 3:
873 goes into 401 0 times with a remainder of 401.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 401, we end up with 401.
Take the next digit (1) from the dividend and append it to 401, then repeat: 4011 / 873

Let's proceed to step 4:
4011 divided by 873 is 4 with a remainder of 519.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
If we take 3492 away from 4011, we end up with 519.
Fetch the next digit (6) from the dividend, attach it to 519 and continue: 5196 / 873

Going ahead to step 5:
When dividing 5196 by 873, we get 5 with a remainder of 831.
The number 5 becomes the next digit in our result. 
Result so far: 45.0
Subtracting 4365 from 5196 leaves us with 831.
Take the next digit (7) from the dividend and append it to 831, then repeat: 8317 / 873

Step 6:
When dividing 8317 by 873, we get 9 with a remainder of 460.
Put 9 as the next digit of the answer. 
Result so far: 459.0
If we subtract 7857 from 8317, we get 460.
Take the next digit (9) from the dividend and append it to 460, then repeat: 4609 / 873

Advancing to step 7:
When dividing 4609 by 873, we get 5 with a remainder of 244.
Record the quotient 5 as the next digit in the result. 
Result so far: 4595.0
The remainder is 244 after subtracting 4365 from 4609.
Fetch the next digit (8) from the dividend, attach it to 244 and continue: 2448 / 873

Going ahead to step 8:
873 can be fit into 2448 2 times, resulting in a remainder of 702.
Use 2 as the next digit of our solution. 
Result so far: 45952.0
Subtract 1746 from 2448 to get 702.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7020, and continue the process.

On to step 9:
7020 divided by 873 is 8 with a remainder of 36.
The number 8 becomes the next digit in our result. 
Result so far: 45952.8
Subtracting 6984 from 7020 leaves us with 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:
873 goes into 360 0 times with a remainder of 360.
Record the quotient 0 as the next digit in the result. 
Result so far: 45952.8
If we subtract 0 from 360, we get 360.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3600, and continue the process.

Advancing to step 11:
When dividing 3600 by 873, we get 4 with a remainder of 108.
Put 4 as the next digit of the answer. 
Result so far: 45952.804
Subtract 3492 from 3600 to get 108.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1080, and continue the process.

Let's proceed to step 12:
When dividing 1080 by 873, we get 1 with a remainder of 207.
The next digit of our result is 1. 
Result so far: 45952.8041
If we subtract 873 from 1080, we get 207.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2070, and continue the process.

Let's proceed to step 13:
The number 873 fits into 2070 2 times, leaving a remainder of 324.
Record the quotient 2 as the next digit in the result. 
Result so far: 45952.80412
Subtracting 1746 from 2070 leaves us with 324.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3240, and continue the process.

Moving on to step 14:
873 can be fit into 3240 3 times, resulting in a remainder of 621.
Record the quotient 3 as the next digit in the result. 
Result so far: 45952.804123
If we subtract 2619 from 3240, we get 621.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6210, and continue the process.

On to step 15:
If we divide 6210 by 873, we get 7 and a remainder of 99.
The next digit of our result is 7. 
Result so far: 45952.8041237
Deduct 6111 from 6210 and we're left with 99.
Since there are no more digits in the dividend, we add a zero to the remainder making it 990, and continue the process.

Going ahead to step 16:
873 can be fit into 990 1 times, resulting in a remainder of 117.
The next digit of our result is 1. 
Result so far: 45952.80412371
Subtracting 873 from 990 leaves us with 117.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1170, and continue the process.

The quotient of the division is 45952.80412371, and the remainder is 1.17e-07.