We're dividing 512298 by 13 
We want to divide 512298 by 13.

Going ahead to step 1:
If we divide 5 by 13, we get 0 and a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Append the next digit (1) from the dividend to 5 and continue with: 51 / 13

Let's proceed to step 2:
When dividing 51 by 13, we get 3 with a remainder of 12.
Write down 3 as next digit of the result. 
Result so far: 3.0
If we subtract 39 from 51, we get 12.
Include the next digit (2) from the dividend after 12, then repeat: 122 / 13

Step 3:
122 divided by 13 is 9 with a remainder of 5.
The number 9 becomes the next digit in our result. 
Result so far: 39.0
If we take 117 away from 122, we end up with 5.
Bring next digit (2) of the dividend behind the 5 and repeat the process: 52 / 13

On to step 4:
The number 13 fits into 52 4 times, leaving a remainder of 0.
The number 4 becomes the next digit in our result. 
Result so far: 394.0
If we take 52 away from 52, we end up with 0.
Append the next digit (9) from the dividend to 0 and continue with: 9 / 13

Going ahead to step 5:
The number 13 fits into 9 0 times, leaving a remainder of 9.
The number 0 becomes the next digit in our result. 
Result so far: 3940.0
Deduct 0 from 9 and we're left with 9.
Fetch the next digit (8) from the dividend, attach it to 9 and continue: 98 / 13

On to step 6:
13 goes into 98 7 times with a remainder of 7.
The next digit of our result is 7. 
Result so far: 39407.0
If we take 91 away from 98, we end up with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Let's proceed to step 7:
13 can be fit into 70 5 times, resulting in a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 39407.5
If we subtract 65 from 70, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Moving on to step 8:
The number 13 fits into 50 3 times, leaving a remainder of 11.
Record the quotient 3 as the next digit in the result. 
Result so far: 39407.53
Subtracting 39 from 50 leaves us with 11.
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 9:
13 goes into 110 8 times with a remainder of 6.
Record the quotient 8 as the next digit in the result. 
Result so far: 39407.538
Deduct 104 from 110 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Going ahead to step 10:
If we divide 60 by 13, we get 4 and a remainder of 8.
Record the quotient 4 as the next digit in the result. 
Result so far: 39407.5384
If we subtract 52 from 60, we get 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 11:
13 can be fit into 80 6 times, resulting in a remainder of 2.
The number 6 becomes the next digit in our result. 
Result so far: 39407.53846
Subtracting 78 from 80 leaves us 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 12:
The number 13 fits into 20 1 times, leaving a remainder of 7.
Write down 1 as next digit of the result. 
Result so far: 39407.538461
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.

Advancing to step 13:
13 goes into 70 5 times with a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 39407.5384615
Subtracting 65 from 70 leaves us 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.

Step 14:
When dividing 50 by 13, we get 3 with a remainder of 11.
Use 3 as the next digit of our solution. 
Result so far: 39407.53846153
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.

After the division, we end up with 39407.53846153 and a remainder of 1.1e-08.