We divide 40491578 by 662
We want to divide 40491578 by 662.

Advancing to step 1:
662 can be fit into 4 0 times, resulting in a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 662

Step 2:
The number 662 fits into 40 0 times, leaving 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.
Grab the next digit (4) from the dividend, add it to 40, then carry on: 404 / 662

Moving on to step 3:
662 can be fit into 404 0 times, resulting in a remainder of 404.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 404, we end up with 404.
Take the next digit (9) from the dividend and append it to 404, then repeat: 4049 / 662

On to step 4:
When dividing 4049 by 662, we get 6 with a remainder of 77.
Record the quotient 6 as the next digit in the result. 
Result so far: 6.0
If we subtract 3972 from 4049, we get 77.
Grab the next digit (1) from the dividend, add it to 77, then carry on: 771 / 662

On to step 5:
The number 662 fits into 771 1 times, leaving a remainder of 109.
The next digit of our result is 1. 
Result so far: 61.0
Subtracting 662 from 771 leaves us with 109.
Bring next digit (5) of the dividend behind the 109 and repeat the process: 1095 / 662

Advancing to step 6:
The number 662 fits into 1095 1 times, leaving a remainder of 433.
Record the quotient 1 as the next digit in the result. 
Result so far: 611.0
Subtracting 662 from 1095 leaves us with 433.
Grab the next digit (7) from the dividend, add it to 433, then carry on: 4337 / 662

Step 7:
When dividing 4337 by 662, we get 6 with a remainder of 365.
Use 6 as the next digit of our solution. 
Result so far: 6116.0
Subtracting 3972 from 4337 leaves us with 365.
Append the next digit (8) from the dividend to 365 and continue with: 3658 / 662

Step 8:
3658 divided by 662 is 5 with a remainder of 348.
The next digit of our result is 5. 
Result so far: 61165.0
The remainder is 348 after subtracting 3310 from 3658.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3480, and continue the process.

Moving on to step 9:
662 can be fit into 3480 5 times, resulting in a remainder of 170.
Record the quotient 5 as the next digit in the result. 
Result so far: 61165.5
The remainder is 170 after subtracting 3310 from 3480.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1700, and continue the process.

On to step 10:
When dividing 1700 by 662, we get 2 with a remainder of 376.
Record the quotient 2 as the next digit in the result. 
Result so far: 61165.52
Subtracting 1324 from 1700 leaves us with 376.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3760, and continue the process.

Step 11:
662 goes into 3760 5 times with a remainder of 450.
Put 5 as the next digit of the answer. 
Result so far: 61165.525
If we take 3310 away from 3760, we end up with 450.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4500, and continue the process.

Step 12:
If we divide 4500 by 662, we get 6 and a remainder of 528.
Record the quotient 6 as the next digit in the result. 
Result so far: 61165.5256
Subtracting 3972 from 4500 leaves us with 528.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5280, and continue the process.

Going ahead to step 13:
When dividing 5280 by 662, we get 7 with a remainder of 646.
Write down 7 as next digit of the result. 
Result so far: 61165.52567
If we take 4634 away from 5280, we end up with 646.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6460, and continue the process.

Moving on to step 14:
The number 662 fits into 6460 9 times, leaving a remainder of 502.
The next digit of our result is 9. 
Result so far: 61165.525679
Subtracting 5958 from 6460 leaves us with 502.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5020, and continue the process.

Going ahead to step 15:
When dividing 5020 by 662, we get 7 with a remainder of 386.
Put 7 as the next digit of the answer. 
Result so far: 61165.5256797
Subtracting 4634 from 5020 leaves us with 386.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3860, and continue the process.

Let's proceed to step 16:
When dividing 3860 by 662, we get 5 with a remainder of 550.
Use 5 as the next digit of our solution. 
Result so far: 61165.52567975
Subtracting 3310 from 3860 leaves us with 550.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5500, and continue the process.

The final outcome is 61165.52567975, with a leftover of 5.5e-07.