We divide 40858965 by 802
We want to divide 40858965 by 802.

Step 1:
When dividing 4 by 802, we get 0 with a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 802

Let's proceed to step 2:
When dividing 40 by 802, we get 0 with a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Append the next digit (8) from the dividend to 40 and continue with: 408 / 802

On to step 3:
The number 802 fits into 408 0 times, leaving a remainder of 408.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 408, we get 408.
Grab the next digit (5) from the dividend, add it to 408, then carry on: 4085 / 802

Going ahead to step 4:
The number 802 fits into 4085 5 times, leaving a remainder of 75.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
Subtracting 4010 from 4085 leaves us with 75.
Take the next digit (8) from the dividend and append it to 75, then repeat: 758 / 802

Moving on to step 5:
The number 802 fits into 758 0 times, leaving a remainder of 758.
Use 0 as the next digit of our solution. 
Result so far: 50.0
The remainder is 758 after subtracting 0 from 758.
Grab the next digit (9) from the dividend, add it to 758, then carry on: 7589 / 802

Going ahead to step 6:
7589 divided by 802 is 9 with a remainder of 371.
The number 9 becomes the next digit in our result. 
Result so far: 509.0
Subtracting 7218 from 7589 leaves us with 371.
Include the next digit (6) from the dividend after 371, then repeat: 3716 / 802

On to step 7:
The number 802 fits into 3716 4 times, leaving a remainder of 508.
Put 4 as the next digit of the answer. 
Result so far: 5094.0
If we take 3208 away from 3716, we end up with 508.
Grab the next digit (5) from the dividend, add it to 508, then carry on: 5085 / 802

Advancing to step 8:
5085 divided by 802 is 6 with a remainder of 273.
The next digit of our result is 6. 
Result so far: 50946.0
Subtract 4812 from 5085 to get 273.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2730, and continue the process.

Let's proceed to step 9:
If we divide 2730 by 802, we get 3 and a remainder of 324.
Put 3 as the next digit of the answer. 
Result so far: 50946.3
The remainder is 324 after subtracting 2406 from 2730.
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 10:
The number 802 fits into 3240 4 times, leaving a remainder of 32.
Record the quotient 4 as the next digit in the result. 
Result so far: 50946.34
Deduct 3208 from 3240 and we're left with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Moving on to step 11:
The number 802 fits into 320 0 times, leaving a remainder of 320.
The number 0 becomes the next digit in our result. 
Result so far: 50946.34
Subtracting 0 from 320 leaves us with 320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3200, and continue the process.

Let's proceed to step 12:
3200 divided by 802 is 3 with a remainder of 794.
Write down 3 as next digit of the result. 
Result so far: 50946.3403
If we subtract 2406 from 3200, we get 794.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7940, and continue the process.

Moving on to step 13:
If we divide 7940 by 802, we get 9 and a remainder of 722.
Use 9 as the next digit of our solution. 
Result so far: 50946.34039
If we take 7218 away from 7940, we end up with 722.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7220, and continue the process.

Moving on to step 14:
When dividing 7220 by 802, we get 9 with a remainder of 2.
The number 9 becomes the next digit in our result. 
Result so far: 50946.340399
If we subtract 7218 from 7220, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

After the division, we end up with 50946.340399 and a remainder of 2e-07.