We're dividing 40786821 by 149 
We want to divide 40786821 by 149.

Going ahead to step 1:
If we divide 4 by 149, we get 0 and a remainder of 4.
Record the quotient 0 as the next digit in the result. 
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 / 149

Let's proceed to step 2:
If we divide 40 by 149, we get 0 and a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Grab the next digit (7) from the dividend, add it to 40, then carry on: 407 / 149

Moving on to step 3:
149 goes into 407 2 times with a remainder of 109.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
If we take 298 away from 407, we end up with 109.
Grab the next digit (8) from the dividend, add it to 109, then carry on: 1098 / 149

Moving on to step 4:
149 goes into 1098 7 times with a remainder of 55.
Use 7 as the next digit of our solution. 
Result so far: 27.0
Subtract 1043 from 1098 to get 55.
Bring next digit (6) of the dividend behind the 55 and repeat the process: 556 / 149

Let's proceed to step 5:
556 divided by 149 is 3 with a remainder of 109.
Put 3 as the next digit of the answer. 
Result so far: 273.0
Subtracting 447 from 556 leaves us with 109.
Include the next digit (8) from the dividend after 109, then repeat: 1098 / 149

On to step 6:
149 can be fit into 1098 7 times, resulting in a remainder of 55.
The number 7 becomes the next digit in our result. 
Result so far: 2737.0
If we take 1043 away from 1098, we end up with 55.
Append the next digit (2) from the dividend to 55 and continue with: 552 / 149

Moving on to step 7:
552 divided by 149 is 3 with a remainder of 105.
Put 3 as the next digit of the answer. 
Result so far: 27373.0
If we take 447 away from 552, we end up with 105.
Include the next digit (1) from the dividend after 105, then repeat: 1051 / 149

Step 8:
1051 divided by 149 is 7 with a remainder of 8.
Put 7 as the next digit of the answer. 
Result so far: 273737.0
The remainder is 8 after subtracting 1043 from 1051.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 9:
80 divided by 149 is 0 with a remainder of 80.
The next digit of our result is 0. 
Result so far: 273737.0
If we take 0 away from 80, we end up with 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 800, and continue the process.

Step 10:
The number 149 fits into 800 5 times, leaving a remainder of 55.
The number 5 becomes the next digit in our result. 
Result so far: 273737.05
Deduct 745 from 800 and we're left with 55.
Since there are no more digits in the dividend, we add a zero to the remainder making it 550, and continue the process.

Moving on to step 11:
If we divide 550 by 149, we get 3 and a remainder of 103.
Record the quotient 3 as the next digit in the result. 
Result so far: 273737.053
If we subtract 447 from 550, we get 103.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1030, and continue the process.

Advancing to step 12:
149 goes into 1030 6 times with a remainder of 136.
Put 6 as the next digit of the answer. 
Result so far: 273737.0536
The remainder is 136 after subtracting 894 from 1030.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1360, and continue the process.

Advancing to step 13:
149 goes into 1360 9 times with a remainder of 19.
Write down 9 as next digit of the result. 
Result so far: 273737.05369
The remainder is 19 after subtracting 1341 from 1360.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Going ahead to step 14:
190 divided by 149 is 1 with a remainder of 41.
Use 1 as the next digit of our solution. 
Result so far: 273737.053691
The remainder is 41 after subtracting 149 from 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 410, and continue the process.

Advancing to step 15:
149 can be fit into 410 2 times, resulting in a remainder of 112.
Put 2 as the next digit of the answer. 
Result so far: 273737.0536912
Subtracting 298 from 410 leaves us 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.

Going ahead to step 16:
1120 divided by 149 is 7 with a remainder of 77.
The next digit of our result is 7. 
Result so far: 273737.05369127
If we subtract 1043 from 1120, we get 77.
Since there are no more digits in the dividend, we add a zero to the remainder making it 770, and continue the process.

The quotient of the division is 273737.05369127, and the remainder is 7.7e-08.