3998407 ÷ 838 
We want to figure out the number of times 3998407 can be divided by 838.

On to step 1:
3 divided by 838 is 0 with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 838

Step 2:
If we divide 39 by 838, we get 0 and a remainder of 39.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 39, we get 39.
Include the next digit (9) from the dividend after 39, then repeat: 399 / 838

Advancing to step 3:
838 can be fit into 399 0 times, resulting in a remainder of 399.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 399 leaves us with 399.
Take the next digit (8) from the dividend and append it to 399, then repeat: 3998 / 838

Step 4:
If we divide 3998 by 838, we get 4 and a remainder of 646.
Use 4 as the next digit of our solution. 
Result so far: 4.0
The remainder is 646 after subtracting 3352 from 3998.
Append the next digit (4) from the dividend to 646 and continue with: 6464 / 838

Going ahead to step 5:
6464 divided by 838 is 7 with a remainder of 598.
The next digit of our result is 7. 
Result so far: 47.0
Subtracting 5866 from 6464 leaves us with 598.
Fetch the next digit (0) from the dividend, attach it to 598 and continue: 5980 / 838

Moving on to step 6:
When dividing 5980 by 838, we get 7 with a remainder of 114.
The number 7 becomes the next digit in our result. 
Result so far: 477.0
The remainder is 114 after subtracting 5866 from 5980.
Grab the next digit (7) from the dividend, add it to 114, then carry on: 1147 / 838

Step 7:
838 goes into 1147 1 times with a remainder of 309.
The next digit of our result is 1. 
Result so far: 4771.0
Deduct 838 from 1147 and we're left with 309.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3090, and continue the process.

Step 8:
When dividing 3090 by 838, we get 3 with a remainder of 576.
Write down 3 as next digit of the result. 
Result so far: 4771.3
The remainder is 576 after subtracting 2514 from 3090.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5760, and continue the process.

On to step 9:
When dividing 5760 by 838, we get 6 with a remainder of 732.
The number 6 becomes the next digit in our result. 
Result so far: 4771.36
The remainder is 732 after subtracting 5028 from 5760.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7320, and continue the process.

Moving on to step 10:
838 goes into 7320 8 times with a remainder of 616.
The number 8 becomes the next digit in our result. 
Result so far: 4771.368
If we subtract 6704 from 7320, we get 616.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6160, and continue the process.

Going ahead to step 11:
6160 divided by 838 is 7 with a remainder of 294.
The next digit of our result is 7. 
Result so far: 4771.3687
The remainder is 294 after subtracting 5866 from 6160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2940, and continue the process.

Advancing to step 12:
The number 838 fits into 2940 3 times, leaving a remainder of 426.
Record the quotient 3 as the next digit in the result. 
Result so far: 4771.36873
Subtracting 2514 from 2940 leaves us with 426.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4260, and continue the process.

Let's proceed to step 13:
838 goes into 4260 5 times with a remainder of 70.
Use 5 as the next digit of our solution. 
Result so far: 4771.368735
Subtracting 4190 from 4260 leaves us with 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 700, and continue the process.

Step 14:
838 can be fit into 700 0 times, resulting in a remainder of 700.
Record the quotient 0 as the next digit in the result. 
Result so far: 4771.368735
Subtracting 0 from 700 leaves us with 700.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7000, and continue the process.

Let's proceed to step 15:
838 can be fit into 7000 8 times, resulting in a remainder of 296.
Write down 8 as next digit of the result. 
Result so far: 4771.36873508
If we subtract 6704 from 7000, we get 296.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2960, and continue the process.

Our division results in 4771.36873508 with a remaining 2.96e-07.