We divide 40667012 by 138
We want to divide 40667012 by 138.

Advancing to step 1:
If we divide 4 by 138, we get 0 and 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.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 138

Let's proceed to step 2:
138 can be fit into 40 0 times, resulting in a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 40 after subtracting 0 from 40.
Take the next digit (6) from the dividend and append it to 40, then repeat: 406 / 138

Going ahead to step 3:
138 can be fit into 406 2 times, resulting in a remainder of 130.
Put 2 as the next digit of the answer. 
Result so far: 2.0
Deduct 276 from 406 and we're left with 130.
Grab the next digit (6) from the dividend, add it to 130, then carry on: 1306 / 138

Going ahead to step 4:
138 can be fit into 1306 9 times, resulting in a remainder of 64.
Put 9 as the next digit of the answer. 
Result so far: 29.0
If we take 1242 away from 1306, we end up with 64.
Append the next digit (7) from the dividend to 64 and continue with: 647 / 138

On to step 5:
138 can be fit into 647 4 times, resulting in a remainder of 95.
The number 4 becomes the next digit in our result. 
Result so far: 294.0
The remainder is 95 after subtracting 552 from 647.
Take the next digit (0) from the dividend and append it to 95, then repeat: 950 / 138

Let's proceed to step 6:
The number 138 fits into 950 6 times, leaving a remainder of 122.
Write down 6 as next digit of the result. 
Result so far: 2946.0
If we take 828 away from 950, we end up with 122.
Fetch the next digit (1) from the dividend, attach it to 122 and continue: 1221 / 138

Step 7:
138 goes into 1221 8 times with a remainder of 117.
Use 8 as the next digit of our solution. 
Result so far: 29468.0
Subtracting 1104 from 1221 leaves us with 117.
Take the next digit (2) from the dividend and append it to 117, then repeat: 1172 / 138

Step 8:
If we divide 1172 by 138, we get 8 and a remainder of 68.
Put 8 as the next digit of the answer. 
Result so far: 294688.0
The remainder is 68 after subtracting 1104 from 1172.
Since there are no more digits in the dividend, we add a zero to the remainder making it 680, and continue the process.

Moving on to step 9:
680 divided by 138 is 4 with a remainder of 128.
Record the quotient 4 as the next digit in the result. 
Result so far: 294688.4
If we take 552 away from 680, we end up with 128.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1280, and continue the process.

On to step 10:
1280 divided by 138 is 9 with a remainder of 38.
Record the quotient 9 as the next digit in the result. 
Result so far: 294688.49
Subtract 1242 from 1280 to get 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Moving on to step 11:
138 can be fit into 380 2 times, resulting in a remainder of 104.
Write down 2 as next digit of the result. 
Result so far: 294688.492
If we subtract 276 from 380, we get 104.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1040, and continue the process.

Going ahead to step 12:
138 can be fit into 1040 7 times, resulting in a remainder of 74.
Use 7 as the next digit of our solution. 
Result so far: 294688.4927
Subtracting 966 from 1040 leaves us with 74.
Since there are no more digits in the dividend, we add a zero to the remainder making it 740, and continue the process.

Let's proceed to step 13:
138 goes into 740 5 times with a remainder of 50.
Use 5 as the next digit of our solution. 
Result so far: 294688.49275
Subtracting 690 from 740 leaves us with 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

Advancing to step 14:
If we divide 500 by 138, we get 3 and a remainder of 86.
Use 3 as the next digit of our solution. 
Result so far: 294688.492753
Subtracting 414 from 500 leaves us with 86.
Since there are no more digits in the dividend, we add a zero to the remainder making it 860, and continue the process.

Going ahead to step 15:
138 can be fit into 860 6 times, resulting in a remainder of 32.
Use 6 as the next digit of our solution. 
Result so far: 294688.4927536
Subtract 828 from 860 to get 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

On to step 16:
When dividing 320 by 138, we get 2 with a remainder of 44.
Put 2 as the next digit of the answer. 
Result so far: 294688.49275362
Subtract 276 from 320 to get 44.
Since there are no more digits in the dividend, we add a zero to the remainder making it 440, and continue the process.

The quotient of the division is 294688.49275362, and the remainder is 4.4e-08.