We're dividing 40507346 by 124 
We're looking to find how many times 124 goes into 40507346.

Let's proceed to step 1:
124 goes into 4 0 times with a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 124

Going ahead to step 2:
124 goes into 40 0 times with a remainder of 40.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 40 after subtracting 0 from 40.
Take the next digit (5) from the dividend and append it to 40, then repeat: 405 / 124

Moving on to step 3:
The number 124 fits into 405 3 times, leaving a remainder of 33.
Put 3 as the next digit of the answer. 
Result so far: 3.0
The remainder is 33 after subtracting 372 from 405.
Take the next digit (0) from the dividend and append it to 33, then repeat: 330 / 124

On to step 4:
The number 124 fits into 330 2 times, leaving a remainder of 82.
Use 2 as the next digit of our solution. 
Result so far: 32.0
If we subtract 248 from 330, we get 82.
Include the next digit (7) from the dividend after 82, then repeat: 827 / 124

Step 5:
124 can be fit into 827 6 times, resulting in a remainder of 83.
The next digit of our result is 6. 
Result so far: 326.0
If we subtract 744 from 827, we get 83.
Take the next digit (3) from the dividend and append it to 83, then repeat: 833 / 124

On to step 6:
The number 124 fits into 833 6 times, leaving a remainder of 89.
Record the quotient 6 as the next digit in the result. 
Result so far: 3266.0
Deduct 744 from 833 and we're left with 89.
Fetch the next digit (4) from the dividend, attach it to 89 and continue: 894 / 124

Going ahead to step 7:
If we divide 894 by 124, we get 7 and a remainder of 26.
Put 7 as the next digit of the answer. 
Result so far: 32667.0
The remainder is 26 after subtracting 868 from 894.
Fetch the next digit (6) from the dividend, attach it to 26 and continue: 266 / 124

Let's proceed to step 8:
If we divide 266 by 124, we get 2 and a remainder of 18.
Put 2 as the next digit of the answer. 
Result so far: 326672.0
Subtracting 248 from 266 leaves us with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Step 9:
180 divided by 124 is 1 with a remainder of 56.
The next digit of our result is 1. 
Result so far: 326672.1
If we subtract 124 from 180, we get 56.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

Going ahead to step 10:
The number 124 fits into 560 4 times, leaving a remainder of 64.
Use 4 as the next digit of our solution. 
Result so far: 326672.14
Subtract 496 from 560 to get 64.
Since there are no more digits in the dividend, we add a zero to the remainder making it 640, and continue the process.

Advancing to step 11:
If we divide 640 by 124, we get 5 and a remainder of 20.
Use 5 as the next digit of our solution. 
Result so far: 326672.145
If we take 620 away from 640, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 12:
200 divided by 124 is 1 with a remainder of 76.
The next digit of our result is 1. 
Result so far: 326672.1451
If we take 124 away from 200, we end up with 76.
Since there are no more digits in the dividend, we add a zero to the remainder making it 760, and continue the process.

Advancing to step 13:
124 goes into 760 6 times with a remainder of 16.
The number 6 becomes the next digit in our result. 
Result so far: 326672.14516
Subtracting 744 from 760 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Moving on to step 14:
The number 124 fits into 160 1 times, leaving a remainder of 36.
Record the quotient 1 as the next digit in the result. 
Result so far: 326672.145161
The remainder is 36 after subtracting 124 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Step 15:
The number 124 fits into 360 2 times, leaving a remainder of 112.
Record the quotient 2 as the next digit in the result. 
Result so far: 326672.1451612
Deduct 248 from 360 and we're left with 112.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1120, and continue the process.

On to step 16:
The number 124 fits into 1120 9 times, leaving a remainder of 4.
Record the quotient 9 as the next digit in the result. 
Result so far: 326672.14516129
Subtract 1116 from 1120 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

After the division, we end up with 326672.14516129 and a remainder of 4e-09.