We divide 40079974 by 161
Our goal is to divide 40079974 by 161.

Step 1:
161 can be fit into 4 0 times, resulting in a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 161

Advancing to step 2:
161 can be fit into 40 0 times, resulting in a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 40, we get 40.
Fetch the next digit (0) from the dividend, attach it to 40 and continue: 400 / 161

Going ahead to step 3:
161 goes into 400 2 times with a remainder of 78.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
Subtracting 322 from 400 leaves us with 78.
Include the next digit (7) from the dividend after 78, then repeat: 787 / 161

Moving on to step 4:
787 divided by 161 is 4 with a remainder of 143.
Write down 4 as next digit of the result. 
Result so far: 24.0
The remainder is 143 after subtracting 644 from 787.
Fetch the next digit (9) from the dividend, attach it to 143 and continue: 1439 / 161

Moving on to step 5:
If we divide 1439 by 161, we get 8 and a remainder of 151.
Use 8 as the next digit of our solution. 
Result so far: 248.0
Subtracting 1288 from 1439 leaves us with 151.
Take the next digit (9) from the dividend and append it to 151, then repeat: 1519 / 161

Going ahead to step 6:
161 can be fit into 1519 9 times, resulting in a remainder of 70.
The next digit of our result is 9. 
Result so far: 2489.0
The remainder is 70 after subtracting 1449 from 1519.
Bring next digit (7) of the dividend behind the 70 and repeat the process: 707 / 161

On to step 7:
The number 161 fits into 707 4 times, leaving a remainder of 63.
Use 4 as the next digit of our solution. 
Result so far: 24894.0
The remainder is 63 after subtracting 644 from 707.
Append the next digit (4) from the dividend to 63 and continue with: 634 / 161

On to step 8:
634 divided by 161 is 3 with a remainder of 151.
The next digit of our result is 3. 
Result so far: 248943.0
Subtracting 483 from 634 leaves us with 151.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1510, and continue the process.

Moving on to step 9:
The number 161 fits into 1510 9 times, leaving a remainder of 61.
Use 9 as the next digit of our solution. 
Result so far: 248943.9
Subtracting 1449 from 1510 leaves us with 61.
Since there are no more digits in the dividend, we add a zero to the remainder making it 610, and continue the process.

Advancing to step 10:
161 can be fit into 610 3 times, resulting in a remainder of 127.
Record the quotient 3 as the next digit in the result. 
Result so far: 248943.93
If we take 483 away from 610, we end up with 127.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1270, and continue the process.

Moving on to step 11:
161 can be fit into 1270 7 times, resulting in a remainder of 143.
Write down 7 as next digit of the result. 
Result so far: 248943.937
Subtract 1127 from 1270 to get 143.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1430, and continue the process.

Moving on to step 12:
The number 161 fits into 1430 8 times, leaving a remainder of 142.
Put 8 as the next digit of the answer. 
Result so far: 248943.9378
Deduct 1288 from 1430 and we're left with 142.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1420, and continue the process.

Advancing to step 13:
1420 divided by 161 is 8 with a remainder of 132.
Write down 8 as next digit of the result. 
Result so far: 248943.93788
Subtract 1288 from 1420 to get 132.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1320, and continue the process.

After the division, we end up with 248943.93788 and a remainder of 0.000132.