Let's divide 341711 by 40
We want to divide 341711 by 40.

Step 1:
40 can be fit into 3 0 times, resulting in a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Take the next digit (4) from the dividend and append it to 3, then repeat: 34 / 40

Moving on to step 2:
If we divide 34 by 40, we get 0 and a remainder of 34.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 34, we get 34.
Grab the next digit (1) from the dividend, add it to 34, then carry on: 341 / 40

Step 3:
341 divided by 40 is 8 with a remainder of 21.
Put 8 as the next digit of the answer. 
Result so far: 8.0
Subtract 320 from 341 to get 21.
Bring next digit (7) of the dividend behind the 21 and repeat the process: 217 / 40

Going ahead to step 4:
40 goes into 217 5 times with a remainder of 17.
The number 5 becomes the next digit in our result. 
Result so far: 85.0
If we take 200 away from 217, we end up with 17.
Fetch the next digit (1) from the dividend, attach it to 17 and continue: 171 / 40

Step 5:
If we divide 171 by 40, we get 4 and a remainder of 11.
Write down 4 as next digit of the result. 
Result so far: 854.0
Deduct 160 from 171 and we're left with 11.
Append the next digit (1) from the dividend to 11 and continue with: 111 / 40

Step 6:
The number 40 fits into 111 2 times, leaving a remainder of 31.
Record the quotient 2 as the next digit in the result. 
Result so far: 8542.0
If we take 80 away from 111, we end up with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Advancing to step 7:
The number 40 fits into 310 7 times, leaving a remainder of 30.
The number 7 becomes the next digit in our result. 
Result so far: 8542.7
The remainder is 30 after subtracting 280 from 310.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 8:
When dividing 300 by 40, we get 7 with a remainder of 20.
Put 7 as the next digit of the answer. 
Result so far: 8542.77
The remainder is 20 after subtracting 280 from 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

The final result is 8542.77 with a remainder of 0.02.