We look at the division of 40838 by 17 
We want to figure out the number of times 40838 can be divided by 17.

On to step 1:
17 can be fit into 4 0 times, resulting in a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 17

Advancing to step 2:
If we divide 40 by 17, we get 2 and a remainder of 6.
Write down 2 as next digit of the result. 
Result so far: 2.0
Subtract 34 from 40 to get 6.
Include the next digit (8) from the dividend after 6, then repeat: 68 / 17

Advancing to step 3:
The number 17 fits into 68 4 times, leaving a remainder of 0.
Record the quotient 4 as the next digit in the result. 
Result so far: 24.0
Deduct 68 from 68 and we're left with 0.
Bring next digit (3) of the dividend behind the 0 and repeat the process: 3 / 17

On to step 4:
17 can be fit into 3 0 times, resulting in a remainder of 3.
The next digit of our result is 0. 
Result so far: 240.0
The remainder is 3 after subtracting 0 from 3.
Append the next digit (8) from the dividend to 3 and continue with: 38 / 17

Going ahead to step 5:
17 goes into 38 2 times with a remainder of 4.
Use 2 as the next digit of our solution. 
Result so far: 2402.0
The remainder is 4 after subtracting 34 from 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 6:
40 divided by 17 is 2 with a remainder of 6.
Put 2 as the next digit of the answer. 
Result so far: 2402.2
Subtract 34 from 40 to get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Going ahead to step 7:
If we divide 60 by 17, we get 3 and a remainder of 9.
Put 3 as the next digit of the answer. 
Result so far: 2402.23
Deduct 51 from 60 and we're left with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Moving on to step 8:
90 divided by 17 is 5 with a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 2402.235
Subtract 85 from 90 to get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Advancing to step 9:
The number 17 fits into 50 2 times, leaving a remainder of 16.
The next digit of our result is 2. 
Result so far: 2402.2352
Subtract 34 from 50 to get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Step 10:
If we divide 160 by 17, we get 9 and a remainder of 7.
Use 9 as the next digit of our solution. 
Result so far: 2402.23529
If we take 153 away from 160, we end up 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 11:
17 can be fit into 70 4 times, resulting in a remainder of 2.
Record the quotient 4 as the next digit in the result. 
Result so far: 2402.235294
Subtract 68 from 70 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 12:
When dividing 20 by 17, we get 1 with a remainder of 3.
Put 1 as the next digit of the answer. 
Result so far: 2402.2352941
If we subtract 17 from 20, we get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Step 13:
The number 17 fits into 30 1 times, leaving a remainder of 13.
Use 1 as the next digit of our solution. 
Result so far: 2402.23529411
The remainder is 13 after subtracting 17 from 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

After the division, we end up with 2402.23529411 and a remainder of 1.3e-08.