We divide 40027740 by 402
We're looking to find how many times 402 goes into 40027740.

On to step 1:
The number 402 fits into 4 0 times, leaving a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 402

On to step 2:
When dividing 40 by 402, we get 0 with a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 40, we get 40.
Take the next digit (0) from the dividend and append it to 40, then repeat: 400 / 402

Moving on to step 3:
402 goes into 400 0 times with a remainder of 400.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 400 to get 400.
Bring next digit (2) of the dividend behind the 400 and repeat the process: 4002 / 402

Let's proceed to step 4:
The number 402 fits into 4002 9 times, leaving a remainder of 384.
Use 9 as the next digit of our solution. 
Result so far: 9.0
Subtract 3618 from 4002 to get 384.
Include the next digit (7) from the dividend after 384, then repeat: 3847 / 402

Let's proceed to step 5:
When dividing 3847 by 402, we get 9 with a remainder of 229.
Use 9 as the next digit of our solution. 
Result so far: 99.0
Subtracting 3618 from 3847 leaves us with 229.
Append the next digit (7) from the dividend to 229 and continue with: 2297 / 402

Let's proceed to step 6:
When dividing 2297 by 402, we get 5 with a remainder of 287.
Use 5 as the next digit of our solution. 
Result so far: 995.0
Subtracting 2010 from 2297 leaves us with 287.
Append the next digit (4) from the dividend to 287 and continue with: 2874 / 402

On to step 7:
2874 divided by 402 is 7 with a remainder of 60.
Write down 7 as next digit of the result. 
Result so far: 9957.0
If we subtract 2814 from 2874, we get 60.
Include the next digit (0) from the dividend after 60, then repeat: 600 / 402

On to step 8:
402 can be fit into 600 1 times, resulting in a remainder of 198.
Put 1 as the next digit of the answer. 
Result so far: 99571.0
Subtracting 402 from 600 leaves us with 198.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1980, and continue the process.

Advancing to step 9:
402 can be fit into 1980 4 times, resulting in a remainder of 372.
Write down 4 as next digit of the result. 
Result so far: 99571.4
Subtract 1608 from 1980 to get 372.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3720, and continue the process.

Going ahead to step 10:
402 goes into 3720 9 times with a remainder of 102.
Put 9 as the next digit of the answer. 
Result so far: 99571.49
The remainder is 102 after subtracting 3618 from 3720.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1020, and continue the process.

Moving on to step 11:
When dividing 1020 by 402, we get 2 with a remainder of 216.
Record the quotient 2 as the next digit in the result. 
Result so far: 99571.492
If we subtract 804 from 1020, 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.

Let's proceed to step 12:
When dividing 2160 by 402, we get 5 with a remainder of 150.
Use 5 as the next digit of our solution. 
Result so far: 99571.4925
Subtracting 2010 from 2160 leaves us with 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1500, and continue the process.

Moving on to step 13:
402 goes into 1500 3 times with a remainder of 294.
Put 3 as the next digit of the answer. 
Result so far: 99571.49253
If we subtract 1206 from 1500, we get 294.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2940, and continue the process.

On to step 14:
402 can be fit into 2940 7 times, resulting in a remainder of 126.
Record the quotient 7 as the next digit in the result. 
Result so far: 99571.492537
Deduct 2814 from 2940 and we're left with 126.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1260, and continue the process.

Going ahead to step 15:
402 can be fit into 1260 3 times, resulting in a remainder of 54.
Record the quotient 3 as the next digit in the result. 
Result so far: 99571.4925373
If we subtract 1206 from 1260, we get 54.
Since there are no more digits in the dividend, we add a zero to the remainder making it 540, and continue the process.

Going ahead to step 16:
The number 402 fits into 540 1 times, leaving a remainder of 138.
Record the quotient 1 as the next digit in the result. 
Result so far: 99571.49253731
Subtracting 402 from 540 leaves us with 138.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1380, and continue the process.

The final outcome is 99571.49253731, with a leftover of 1.38e-07.