We're dividing 39798817 by 842 
Let's see how many times 842 fits into 39798817.

Going ahead to step 1:
842 can be fit into 3 0 times, resulting in a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 842

Let's proceed to step 2:
39 divided by 842 is 0 with a remainder of 39.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 39 leaves us with 39.
Append the next digit (7) from the dividend to 39 and continue with: 397 / 842

Moving on to step 3:
842 can be fit into 397 0 times, resulting in a remainder of 397.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 397 to get 397.
Grab the next digit (9) from the dividend, add it to 397, then carry on: 3979 / 842

Step 4:
If we divide 3979 by 842, we get 4 and a remainder of 611.
Put 4 as the next digit of the answer. 
Result so far: 4.0
Deduct 3368 from 3979 and we're left with 611.
Grab the next digit (8) from the dividend, add it to 611, then carry on: 6118 / 842

Step 5:
The number 842 fits into 6118 7 times, leaving a remainder of 224.
The next digit of our result is 7. 
Result so far: 47.0
If we take 5894 away from 6118, we end up with 224.
Append the next digit (8) from the dividend to 224 and continue with: 2248 / 842

Advancing to step 6:
842 goes into 2248 2 times with a remainder of 564.
The number 2 becomes the next digit in our result. 
Result so far: 472.0
If we subtract 1684 from 2248, we get 564.
Bring next digit (1) of the dividend behind the 564 and repeat the process: 5641 / 842

Moving on to step 7:
When dividing 5641 by 842, we get 6 with a remainder of 589.
Write down 6 as next digit of the result. 
Result so far: 4726.0
The remainder is 589 after subtracting 5052 from 5641.
Include the next digit (7) from the dividend after 589, then repeat: 5897 / 842

On to step 8:
842 can be fit into 5897 7 times, resulting in a remainder of 3.
Record the quotient 7 as the next digit in the result. 
Result so far: 47267.0
If we subtract 5894 from 5897, 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.

Advancing to step 9:
842 can be fit into 30 0 times, resulting in a remainder of 30.
Write down 0 as next digit of the result. 
Result so far: 47267.0
The remainder is 30 after subtracting 0 from 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Let's proceed to step 10:
If we divide 300 by 842, we get 0 and a remainder of 300.
Put 0 as the next digit of the answer. 
Result so far: 47267.0
If we subtract 0 from 300, we get 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3000, and continue the process.

The final result is 47267.0 with a remainder of 0.3.