835171 ÷ 40 
We want to divide 835171 by 40.

Advancing to step 1:
8 divided by 40 is 0 with a remainder of 8.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 8 to get 8.
Fetch the next digit (3) from the dividend, attach it to 8 and continue: 83 / 40

Moving on to step 2:
40 goes into 83 2 times with a remainder of 3.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
Subtracting 80 from 83 leaves us with 3.
Fetch the next digit (5) from the dividend, attach it to 3 and continue: 35 / 40

Step 3:
40 goes into 35 0 times with a remainder of 35.
Write down 0 as next digit of the result. 
Result so far: 20.0
The remainder is 35 after subtracting 0 from 35.
Grab the next digit (1) from the dividend, add it to 35, then carry on: 351 / 40

Step 4:
40 can be fit into 351 8 times, resulting in a remainder of 31.
Put 8 as the next digit of the answer. 
Result so far: 208.0
The remainder is 31 after subtracting 320 from 351.
Include the next digit (7) from the dividend after 31, then repeat: 317 / 40

On to step 5:
The number 40 fits into 317 7 times, leaving a remainder of 37.
Write down 7 as next digit of the result. 
Result so far: 2087.0
The remainder is 37 after subtracting 280 from 317.
Fetch the next digit (1) from the dividend, attach it to 37 and continue: 371 / 40

Moving on to step 6:
If we divide 371 by 40, we get 9 and a remainder of 11.
Record the quotient 9 as the next digit in the result. 
Result so far: 20879.0
If we take 360 away from 371, we end up with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Advancing to step 7:
If we divide 110 by 40, we get 2 and a remainder of 30.
The number 2 becomes the next digit in our result. 
Result so far: 20879.2
The remainder is 30 after subtracting 80 from 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Step 8:
40 can be fit into 300 7 times, resulting in a remainder of 20.
Record the quotient 7 as the next digit in the result. 
Result so far: 20879.27
Deduct 280 from 300 and we're left 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.

Let's proceed to step 9:
40 can be fit into 200 5 times, resulting in a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 20879.275
The remainder is 0 after subtracting 200 from 200.
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:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 20879.275
Deduct 0 from 0 and we're left 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.

On to step 11:
If we divide 0 by 40, we get 0 and a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 20879.275
If we take 0 away from 0, 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.

The final outcome is 20879.275, with a leftover of 0.0.