We look at the division of 40031564 by 117 
Let's see how many times 117 fits into 40031564.

Let's proceed to step 1:
When dividing 4 by 117, we get 0 with a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 117

Moving on to step 2:
117 can be fit into 40 0 times, resulting in a remainder of 40.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 40 to get 40.
Fetch the next digit (0) from the dividend, attach it to 40 and continue: 400 / 117

On to step 3:
117 can be fit into 400 3 times, resulting in a remainder of 49.
The next digit of our result is 3. 
Result so far: 3.0
If we subtract 351 from 400, we get 49.
Include the next digit (3) from the dividend after 49, then repeat: 493 / 117

On to step 4:
117 goes into 493 4 times with a remainder of 25.
Use 4 as the next digit of our solution. 
Result so far: 34.0
The remainder is 25 after subtracting 468 from 493.
Append the next digit (1) from the dividend to 25 and continue with: 251 / 117

Moving on to step 5:
117 can be fit into 251 2 times, resulting in a remainder of 17.
The next digit of our result is 2. 
Result so far: 342.0
If we take 234 away from 251, we end up with 17.
Fetch the next digit (5) from the dividend, attach it to 17 and continue: 175 / 117

Step 6:
117 goes into 175 1 times with a remainder of 58.
Record the quotient 1 as the next digit in the result. 
Result so far: 3421.0
Subtract 117 from 175 to get 58.
Fetch the next digit (6) from the dividend, attach it to 58 and continue: 586 / 117

On to step 7:
117 goes into 586 5 times with a remainder of 1.
Record the quotient 5 as the next digit in the result. 
Result so far: 34215.0
Subtracting 585 from 586 leaves us with 1.
Append the next digit (4) from the dividend to 1 and continue with: 14 / 117

Step 8:
117 goes into 14 0 times with a remainder of 14.
The next digit of our result is 0. 
Result so far: 342150.0
Subtract 0 from 14 to get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Advancing to step 9:
When dividing 140 by 117, we get 1 with a remainder of 23.
The number 1 becomes the next digit in our result. 
Result so far: 342150.1
If we take 117 away from 140, we end up with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Let's proceed to step 10:
If we divide 230 by 117, we get 1 and a remainder of 113.
The next digit of our result is 1. 
Result so far: 342150.11
Subtract 117 from 230 to get 113.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1130, and continue the process.

After the division, we end up with 342150.11 and a remainder of 0.113.