We're dividing 397865 by 30 
Let's see how many times 30 fits into 397865.

Moving on to step 1:
The number 30 fits into 3 0 times, leaving a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Include the next digit (9) from the dividend after 3, then repeat: 39 / 30

Step 2:
If we divide 39 by 30, we get 1 and a remainder of 9.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we take 30 away from 39, we end up with 9.
Append the next digit (7) from the dividend to 9 and continue with: 97 / 30

Going ahead to step 3:
If we divide 97 by 30, we get 3 and a remainder of 7.
Put 3 as the next digit of the answer. 
Result so far: 13.0
If we subtract 90 from 97, we get 7.
Include the next digit (8) from the dividend after 7, then repeat: 78 / 30

Step 4:
If we divide 78 by 30, we get 2 and a remainder of 18.
Write down 2 as next digit of the result. 
Result so far: 132.0
Deduct 60 from 78 and we're left with 18.
Grab the next digit (6) from the dividend, add it to 18, then carry on: 186 / 30

Moving on to step 5:
186 divided by 30 is 6 with a remainder of 6.
Write down 6 as next digit of the result. 
Result so far: 1326.0
Deduct 180 from 186 and we're left with 6.
Fetch the next digit (5) from the dividend, attach it to 6 and continue: 65 / 30

Let's proceed to step 6:
30 goes into 65 2 times with a remainder of 5.
The next digit of our result is 2. 
Result so far: 13262.0
If we take 60 away from 65, we end up with 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 7:
30 can be fit into 50 1 times, resulting in a remainder of 20.
Put 1 as the next digit of the answer. 
Result so far: 13262.1
The remainder is 20 after subtracting 30 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 8:
The number 30 fits into 200 6 times, leaving a remainder of 20.
The number 6 becomes the next digit in our result. 
Result so far: 13262.16
The remainder is 20 after subtracting 180 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 9:
If we divide 200 by 30, we get 6 and a remainder of 20.
The next digit of our result is 6. 
Result so far: 13262.166
Subtract 180 from 200 to 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.

Our division results in 13262.166 with a remaining 0.002.