We look at the division of 30040031 by 161 
We're looking to find how many times 161 goes into 30040031.

Let's proceed to step 1:
3 divided by 161 is 0 with a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Include the next digit (0) from the dividend after 3, then repeat: 30 / 161

Step 2:
161 can be fit into 30 0 times, resulting in a remainder of 30.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 30 and we're left with 30.
Grab the next digit (0) from the dividend, add it to 30, then carry on: 300 / 161

Step 3:
300 divided by 161 is 1 with a remainder of 139.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtracting 161 from 300 leaves us with 139.
Bring next digit (4) of the dividend behind the 139 and repeat the process: 1394 / 161

Going ahead to step 4:
161 can be fit into 1394 8 times, resulting in a remainder of 106.
Put 8 as the next digit of the answer. 
Result so far: 18.0
If we subtract 1288 from 1394, we get 106.
Bring next digit (0) of the dividend behind the 106 and repeat the process: 1060 / 161

Step 5:
161 can be fit into 1060 6 times, resulting in a remainder of 94.
Write down 6 as next digit of the result. 
Result so far: 186.0
The remainder is 94 after subtracting 966 from 1060.
Fetch the next digit (0) from the dividend, attach it to 94 and continue: 940 / 161

Going ahead to step 6:
161 goes into 940 5 times with a remainder of 135.
Use 5 as the next digit of our solution. 
Result so far: 1865.0
If we subtract 805 from 940, we get 135.
Take the next digit (3) from the dividend and append it to 135, then repeat: 1353 / 161

On to step 7:
161 goes into 1353 8 times with a remainder of 65.
Put 8 as the next digit of the answer. 
Result so far: 18658.0
Subtracting 1288 from 1353 leaves us with 65.
Fetch the next digit (1) from the dividend, attach it to 65 and continue: 651 / 161

Let's proceed to step 8:
161 goes into 651 4 times with a remainder of 7.
Use 4 as the next digit of our solution. 
Result so far: 186584.0
Subtracting 644 from 651 leaves us with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Going ahead to step 9:
161 goes into 70 0 times with a remainder of 70.
The next digit of our result is 0. 
Result so far: 186584.0
If we take 0 away from 70, we end up with 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 700, and continue the process.

On to step 10:
161 can be fit into 700 4 times, resulting in a remainder of 56.
The number 4 becomes the next digit in our result. 
Result so far: 186584.04
Subtracting 644 from 700 leaves us with 56.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

Advancing to step 11:
When dividing 560 by 161, we get 3 with a remainder of 77.
Record the quotient 3 as the next digit in the result. 
Result so far: 186584.043
Subtracting 483 from 560 leaves us with 77.
Since there are no more digits in the dividend, we add a zero to the remainder making it 770, and continue the process.

Let's proceed to step 12:
If we divide 770 by 161, we get 4 and a remainder of 126.
Record the quotient 4 as the next digit in the result. 
Result so far: 186584.0434
If we take 644 away from 770, we end up 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.

Step 13:
161 can be fit into 1260 7 times, resulting in a remainder of 133.
Put 7 as the next digit of the answer. 
Result so far: 186584.04347
Deduct 1127 from 1260 and we're left with 133.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1330, and continue the process.

Let's proceed to step 14:
161 can be fit into 1330 8 times, resulting in a remainder of 42.
Record the quotient 8 as the next digit in the result. 
Result so far: 186584.043478
Subtracting 1288 from 1330 leaves us with 42.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

Advancing to step 15:
420 divided by 161 is 2 with a remainder of 98.
The number 2 becomes the next digit in our result. 
Result so far: 186584.0434782
If we take 322 away from 420, we end up with 98.
Since there are no more digits in the dividend, we add a zero to the remainder making it 980, and continue the process.

Going ahead to step 16:
The number 161 fits into 980 6 times, leaving a remainder of 14.
The next digit of our result is 6. 
Result so far: 186584.04347826
If we take 966 away from 980, we end up with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

The final result is 186584.04347826 with a remainder of 1.4e-08.