We're dividing 138797 by 42 
Let's see how many times 42 fits into 138797.

Let's proceed to step 1:
1 divided by 42 is 0 with a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Include the next digit (3) from the dividend after 1, then repeat: 13 / 42

Let's proceed to step 2:
When dividing 13 by 42, we get 0 with a remainder of 13.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 13, we get 13.
Bring next digit (8) of the dividend behind the 13 and repeat the process: 138 / 42

Advancing to step 3:
138 divided by 42 is 3 with a remainder of 12.
Put 3 as the next digit of the answer. 
Result so far: 3.0
The remainder is 12 after subtracting 126 from 138.
Fetch the next digit (7) from the dividend, attach it to 12 and continue: 127 / 42

Going ahead to step 4:
If we divide 127 by 42, we get 3 and a remainder of 1.
Write down 3 as next digit of the result. 
Result so far: 33.0
Subtract 126 from 127 to get 1.
Include the next digit (9) from the dividend after 1, then repeat: 19 / 42

Advancing to step 5:
If we divide 19 by 42, we get 0 and a remainder of 19.
Write down 0 as next digit of the result. 
Result so far: 330.0
If we subtract 0 from 19, we get 19.
Fetch the next digit (7) from the dividend, attach it to 19 and continue: 197 / 42

Step 6:
When dividing 197 by 42, we get 4 with a remainder of 29.
Put 4 as the next digit of the answer. 
Result so far: 3304.0
Subtract 168 from 197 to get 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Step 7:
290 divided by 42 is 6 with a remainder of 38.
The number 6 becomes the next digit in our result. 
Result so far: 3304.6
If we take 252 away from 290, we end up with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Let's proceed to step 8:
If we divide 380 by 42, we get 9 and a remainder of 2.
Record the quotient 9 as the next digit in the result. 
Result so far: 3304.69
Deduct 378 from 380 and we're left with 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 9:
20 divided by 42 is 0 with a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 3304.69
If we subtract 0 from 20, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 10:
If we divide 200 by 42, we get 4 and a remainder of 32.
Write down 4 as next digit of the result. 
Result so far: 3304.6904
If we subtract 168 from 200, we get 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Step 11:
42 can be fit into 320 7 times, resulting in a remainder of 26.
Use 7 as the next digit of our solution. 
Result so far: 3304.69047
If we subtract 294 from 320, we get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

On to step 12:
When dividing 260 by 42, we get 6 with a remainder of 8.
Write down 6 as next digit of the result. 
Result so far: 3304.690476
If we take 252 away from 260, we end up with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 13:
The number 42 fits into 80 1 times, leaving a remainder of 38.
Record the quotient 1 as the next digit in the result. 
Result so far: 3304.6904761
If we take 42 away from 80, we end up with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Going ahead to step 14:
If we divide 380 by 42, we get 9 and a remainder of 2.
Use 9 as the next digit of our solution. 
Result so far: 3304.69047619
If we subtract 378 from 380, we 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.

Our division results in 3304.69047619 with a remaining 2e-09.