We look at the division of 40987616 by 646 
We want to divide 40987616 by 646.

Step 1:
The number 646 fits into 4 0 times, leaving 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.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 646

Moving on to step 2:
If we divide 40 by 646, we get 0 and a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 40 after subtracting 0 from 40.
Append the next digit (9) from the dividend to 40 and continue with: 409 / 646

On to step 3:
When dividing 409 by 646, we get 0 with a remainder of 409.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 409, we get 409.
Append the next digit (8) from the dividend to 409 and continue with: 4098 / 646

On to step 4:
If we divide 4098 by 646, we get 6 and a remainder of 222.
Put 6 as the next digit of the answer. 
Result so far: 6.0
If we take 3876 away from 4098, we end up with 222.
Include the next digit (7) from the dividend after 222, then repeat: 2227 / 646

Step 5:
If we divide 2227 by 646, we get 3 and a remainder of 289.
Write down 3 as next digit of the result. 
Result so far: 63.0
Subtracting 1938 from 2227 leaves us with 289.
Fetch the next digit (6) from the dividend, attach it to 289 and continue: 2896 / 646

Step 6:
2896 divided by 646 is 4 with a remainder of 312.
The number 4 becomes the next digit in our result. 
Result so far: 634.0
If we take 2584 away from 2896, we end up with 312.
Grab the next digit (1) from the dividend, add it to 312, then carry on: 3121 / 646

Advancing to step 7:
646 goes into 3121 4 times with a remainder of 537.
Write down 4 as next digit of the result. 
Result so far: 6344.0
If we take 2584 away from 3121, we end up with 537.
Append the next digit (6) from the dividend to 537 and continue with: 5376 / 646

Going ahead to step 8:
The number 646 fits into 5376 8 times, leaving a remainder of 208.
Record the quotient 8 as the next digit in the result. 
Result so far: 63448.0
The remainder is 208 after subtracting 5168 from 5376.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2080, and continue the process.

Going ahead to step 9:
646 can be fit into 2080 3 times, resulting in a remainder of 142.
Record the quotient 3 as the next digit in the result. 
Result so far: 63448.3
If we take 1938 away from 2080, we end up with 142.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1420, and continue the process.

Advancing to step 10:
The number 646 fits into 1420 2 times, leaving a remainder of 128.
Write down 2 as next digit of the result. 
Result so far: 63448.32
Subtract 1292 from 1420 to get 128.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1280, and continue the process.

Moving on to step 11:
646 goes into 1280 1 times with a remainder of 634.
Record the quotient 1 as the next digit in the result. 
Result so far: 63448.321
If we subtract 646 from 1280, we get 634.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6340, and continue the process.

On to step 12:
If we divide 6340 by 646, we get 9 and a remainder of 526.
Put 9 as the next digit of the answer. 
Result so far: 63448.3219
Deduct 5814 from 6340 and we're left with 526.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5260, and continue the process.

Moving on to step 13:
646 goes into 5260 8 times with a remainder of 92.
Use 8 as the next digit of our solution. 
Result so far: 63448.32198
The remainder is 92 after subtracting 5168 from 5260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 920, and continue the process.

Advancing to step 14:
When dividing 920 by 646, we get 1 with a remainder of 274.
Put 1 as the next digit of the answer. 
Result so far: 63448.321981
If we subtract 646 from 920, we get 274.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2740, and continue the process.

Advancing to step 15:
2740 divided by 646 is 4 with a remainder of 156.
The number 4 becomes the next digit in our result. 
Result so far: 63448.3219814
Subtract 2584 from 2740 to get 156.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1560, and continue the process.

Step 16:
The number 646 fits into 1560 2 times, leaving a remainder of 268.
Put 2 as the next digit of the answer. 
Result so far: 63448.32198142
Deduct 1292 from 1560 and we're left with 268.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2680, and continue the process.

Our division results in 63448.32198142 with a remaining 2.68e-07.