117877 divided by 40 
We're looking to find how many times 40 goes into 117877.

On to step 1:
1 divided by 40 is 0 with a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Include the next digit (1) from the dividend after 1, then repeat: 11 / 40

Moving on to step 2:
40 goes into 11 0 times with a remainder of 11.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 11 after subtracting 0 from 11.
Grab the next digit (7) from the dividend, add it to 11, then carry on: 117 / 40

Advancing to step 3:
The number 40 fits into 117 2 times, leaving a remainder of 37.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
Deduct 80 from 117 and we're left with 37.
Grab the next digit (8) from the dividend, add it to 37, then carry on: 378 / 40

On to step 4:
40 can be fit into 378 9 times, resulting in a remainder of 18.
The next digit of our result is 9. 
Result so far: 29.0
Subtract 360 from 378 to get 18.
Include the next digit (7) from the dividend after 18, then repeat: 187 / 40

Moving on to step 5:
If we divide 187 by 40, we get 4 and a remainder of 27.
Put 4 as the next digit of the answer. 
Result so far: 294.0
The remainder is 27 after subtracting 160 from 187.
Append the next digit (7) from the dividend to 27 and continue with: 277 / 40

Going ahead to step 6:
40 can be fit into 277 6 times, resulting in a remainder of 37.
Write down 6 as next digit of the result. 
Result so far: 2946.0
Subtracting 240 from 277 leaves us with 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Step 7:
When dividing 370 by 40, we get 9 with a remainder of 10.
Put 9 as the next digit of the answer. 
Result so far: 2946.9
If we subtract 360 from 370, we get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 8:
100 divided by 40 is 2 with a remainder of 20.
Use 2 as the next digit of our solution. 
Result so far: 2946.92
Subtracting 80 from 100 leaves us with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 9:
If we divide 200 by 40, we get 5 and a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 2946.925
If we take 200 away from 200, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 10:
0 divided by 40 is 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 2946.925
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 11:
0 divided by 40 is 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 2946.925
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final result is 2946.925 with a remainder of 0.0.