Let's divide 397587 by 13
We want to figure out the number of times 397587 can be divided by 13.

Let's proceed to step 1:
13 can be fit into 3 0 times, resulting in a remainder of 3.
Put 0 as the next digit of the answer. 
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 / 13

Moving on to step 2:
If we divide 39 by 13, we get 3 and a remainder of 0.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
Subtracting 39 from 39 leaves us with 0.
Append the next digit (7) from the dividend to 0 and continue with: 7 / 13

On to step 3:
When dividing 7 by 13, we get 0 with a remainder of 7.
Record the quotient 0 as the next digit in the result. 
Result so far: 30.0
If we subtract 0 from 7, we get 7.
Take the next digit (5) from the dividend and append it to 7, then repeat: 75 / 13

Step 4:
13 can be fit into 75 5 times, resulting in a remainder of 10.
Write down 5 as next digit of the result. 
Result so far: 305.0
Subtract 65 from 75 to get 10.
Fetch the next digit (8) from the dividend, attach it to 10 and continue: 108 / 13

On to step 5:
108 divided by 13 is 8 with a remainder of 4.
The number 8 becomes the next digit in our result. 
Result so far: 3058.0
If we take 104 away from 108, we end up with 4.
Grab the next digit (7) from the dividend, add it to 4, then carry on: 47 / 13

Advancing to step 6:
13 goes into 47 3 times with a remainder of 8.
The next digit of our result is 3. 
Result so far: 30583.0
If we take 39 away from 47, 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.

Going ahead to step 7:
If we divide 80 by 13, we get 6 and a remainder of 2.
The next digit of our result is 6. 
Result so far: 30583.6
Subtract 78 from 80 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.

Let's proceed to step 8:
20 divided by 13 is 1 with a remainder of 7.
Use 1 as the next digit of our solution. 
Result so far: 30583.61
The remainder is 7 after subtracting 13 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

On to step 9:
70 divided by 13 is 5 with a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 30583.615
The remainder is 5 after subtracting 65 from 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Going ahead to step 10:
13 can be fit into 50 3 times, resulting in a remainder of 11.
Put 3 as the next digit of the answer. 
Result so far: 30583.6153
The remainder is 11 after subtracting 39 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Let's proceed to step 11:
If we divide 110 by 13, we get 8 and a remainder of 6.
Write down 8 as next digit of the result. 
Result so far: 30583.61538
If we subtract 104 from 110, we 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.

On to step 12:
When dividing 60 by 13, we get 4 with a remainder of 8.
The number 4 becomes the next digit in our result. 
Result so far: 30583.615384
Subtracting 52 from 60 leaves us 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:
If we divide 80 by 13, we get 6 and a remainder of 2.
The number 6 becomes the next digit in our result. 
Result so far: 30583.6153846
Deduct 78 from 80 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.

On to step 14:
When dividing 20 by 13, we get 1 with a remainder of 7.
The next digit of our result is 1. 
Result so far: 30583.61538461
Subtract 13 from 20 to get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

In conclusion, the division gives 30583.61538461 with a balance of 7e-09.