40540685 ÷ 658 
We're looking to find how many times 658 goes into 40540685.

Going ahead to step 1:
658 can be fit into 4 0 times, resulting in a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 658

Advancing to step 2:
When dividing 40 by 658, we get 0 with a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 40, we get 40.
Bring next digit (5) of the dividend behind the 40 and repeat the process: 405 / 658

On to step 3:
405 divided by 658 is 0 with a remainder of 405.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 405, we end up with 405.
Bring next digit (4) of the dividend behind the 405 and repeat the process: 4054 / 658

On to step 4:
When dividing 4054 by 658, we get 6 with a remainder of 106.
Use 6 as the next digit of our solution. 
Result so far: 6.0
The remainder is 106 after subtracting 3948 from 4054.
Bring next digit (0) of the dividend behind the 106 and repeat the process: 1060 / 658

Advancing to step 5:
658 goes into 1060 1 times with a remainder of 402.
Use 1 as the next digit of our solution. 
Result so far: 61.0
If we take 658 away from 1060, we end up with 402.
Append the next digit (6) from the dividend to 402 and continue with: 4026 / 658

Advancing to step 6:
When dividing 4026 by 658, we get 6 with a remainder of 78.
Write down 6 as next digit of the result. 
Result so far: 616.0
Deduct 3948 from 4026 and we're left with 78.
Include the next digit (8) from the dividend after 78, then repeat: 788 / 658

Let's proceed to step 7:
788 divided by 658 is 1 with a remainder of 130.
The next digit of our result is 1. 
Result so far: 6161.0
Subtracting 658 from 788 leaves us with 130.
Fetch the next digit (5) from the dividend, attach it to 130 and continue: 1305 / 658

Going ahead to step 8:
658 goes into 1305 1 times with a remainder of 647.
Use 1 as the next digit of our solution. 
Result so far: 61611.0
Subtracting 658 from 1305 leaves us with 647.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6470, and continue the process.

Step 9:
The number 658 fits into 6470 9 times, leaving a remainder of 548.
Use 9 as the next digit of our solution. 
Result so far: 61611.9
The remainder is 548 after subtracting 5922 from 6470.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5480, and continue the process.

Advancing to step 10:
5480 divided by 658 is 8 with a remainder of 216.
The next digit of our result is 8. 
Result so far: 61611.98
If we subtract 5264 from 5480, we get 216.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2160, and continue the process.

On to step 11:
658 can be fit into 2160 3 times, resulting in a remainder of 186.
Use 3 as the next digit of our solution. 
Result so far: 61611.983
If we take 1974 away from 2160, we end up with 186.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1860, and continue the process.

Going ahead to step 12:
The number 658 fits into 1860 2 times, leaving a remainder of 544.
Put 2 as the next digit of the answer. 
Result so far: 61611.9832
If we take 1316 away from 1860, we end up with 544.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5440, and continue the process.

Moving on to step 13:
If we divide 5440 by 658, we get 8 and a remainder of 176.
Use 8 as the next digit of our solution. 
Result so far: 61611.98328
Deduct 5264 from 5440 and we're left with 176.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1760, and continue the process.

Step 14:
If we divide 1760 by 658, we get 2 and a remainder of 444.
Use 2 as the next digit of our solution. 
Result so far: 61611.983282
Subtracting 1316 from 1760 leaves us with 444.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4440, and continue the process.

Step 15:
658 goes into 4440 6 times with a remainder of 492.
Write down 6 as next digit of the result. 
Result so far: 61611.9832826
Subtract 3948 from 4440 to get 492.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4920, and continue the process.

Moving on to step 16:
658 goes into 4920 7 times with a remainder of 314.
Put 7 as the next digit of the answer. 
Result so far: 61611.98328267
If we take 4606 away from 4920, we end up with 314.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3140, and continue the process.

Our division results in 61611.98328267 with a remaining 3.14e-07.