We divide 40156749 by 321
Our goal is to divide 40156749 by 321.

On to step 1:
The number 321 fits into 4 0 times, leaving a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 321

Step 2:
321 can be fit into 40 0 times, resulting in 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.
Bring next digit (1) of the dividend behind the 40 and repeat the process: 401 / 321

On to step 3:
If we divide 401 by 321, we get 1 and a remainder of 80.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtracting 321 from 401 leaves us with 80.
Append the next digit (5) from the dividend to 80 and continue with: 805 / 321

On to step 4:
When dividing 805 by 321, we get 2 with a remainder of 163.
Put 2 as the next digit of the answer. 
Result so far: 12.0
Subtracting 642 from 805 leaves us with 163.
Bring next digit (6) of the dividend behind the 163 and repeat the process: 1636 / 321

Let's proceed to step 5:
The number 321 fits into 1636 5 times, leaving a remainder of 31.
The number 5 becomes the next digit in our result. 
Result so far: 125.0
If we subtract 1605 from 1636, we get 31.
Grab the next digit (7) from the dividend, add it to 31, then carry on: 317 / 321

Step 6:
When dividing 317 by 321, we get 0 with a remainder of 317.
Put 0 as the next digit of the answer. 
Result so far: 1250.0
Subtracting 0 from 317 leaves us with 317.
Bring next digit (4) of the dividend behind the 317 and repeat the process: 3174 / 321

Let's proceed to step 7:
The number 321 fits into 3174 9 times, leaving a remainder of 285.
The number 9 becomes the next digit in our result. 
Result so far: 12509.0
Deduct 2889 from 3174 and we're left with 285.
Append the next digit (9) from the dividend to 285 and continue with: 2859 / 321

Let's proceed to step 8:
If we divide 2859 by 321, we get 8 and a remainder of 291.
Use 8 as the next digit of our solution. 
Result so far: 125098.0
Subtract 2568 from 2859 to get 291.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2910, and continue the process.

On to step 9:
If we divide 2910 by 321, we get 9 and a remainder of 21.
Write down 9 as next digit of the result. 
Result so far: 125098.9
The remainder is 21 after subtracting 2889 from 2910.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Step 10:
If we divide 210 by 321, we get 0 and a remainder of 210.
Write down 0 as next digit of the result. 
Result so far: 125098.9
The remainder is 210 after subtracting 0 from 210.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2100, and continue the process.

Moving on to step 11:
321 goes into 2100 6 times with a remainder of 174.
Use 6 as the next digit of our solution. 
Result so far: 125098.906
Subtract 1926 from 2100 to get 174.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1740, and continue the process.

Moving on to step 12:
When dividing 1740 by 321, we get 5 with a remainder of 135.
Put 5 as the next digit of the answer. 
Result so far: 125098.9065
The remainder is 135 after subtracting 1605 from 1740.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1350, and continue the process.

Moving on to step 13:
When dividing 1350 by 321, we get 4 with a remainder of 66.
Write down 4 as next digit of the result. 
Result so far: 125098.90654
Subtract 1284 from 1350 to get 66.
Since there are no more digits in the dividend, we add a zero to the remainder making it 660, and continue the process.

Let's proceed to step 14:
321 goes into 660 2 times with a remainder of 18.
Record the quotient 2 as the next digit in the result. 
Result so far: 125098.906542
Subtract 642 from 660 to get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

On to step 15:
180 divided by 321 is 0 with a remainder of 180.
Use 0 as the next digit of our solution. 
Result so far: 125098.906542
Subtracting 0 from 180 leaves us with 180.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1800, and continue the process.

Moving on to step 16:
321 goes into 1800 5 times with a remainder of 195.
Use 5 as the next digit of our solution. 
Result so far: 125098.90654205
Subtracting 1605 from 1800 leaves us with 195.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1950, and continue the process.

The quotient of the division is 125098.90654205, and the remainder is 1.95e-07.