We're dividing 516399 by 13 
Our goal is to divide 516399 by 13.

On to step 1:
If we divide 5 by 13, we get 0 and a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Bring next digit (1) of the dividend behind the 5 and repeat the process: 51 / 13

Going ahead to step 2:
The number 13 fits into 51 3 times, leaving a remainder of 12.
Put 3 as the next digit of the answer. 
Result so far: 3.0
Deduct 39 from 51 and we're left with 12.
Take the next digit (6) from the dividend and append it to 12, then repeat: 126 / 13

Step 3:
When dividing 126 by 13, we get 9 with a remainder of 9.
Write down 9 as next digit of the result. 
Result so far: 39.0
Deduct 117 from 126 and we're left with 9.
Include the next digit (3) from the dividend after 9, then repeat: 93 / 13

On to step 4:
When dividing 93 by 13, we get 7 with a remainder of 2.
Put 7 as the next digit of the answer. 
Result so far: 397.0
Deduct 91 from 93 and we're left with 2.
Append the next digit (9) from the dividend to 2 and continue with: 29 / 13

On to step 5:
The number 13 fits into 29 2 times, leaving a remainder of 3.
Put 2 as the next digit of the answer. 
Result so far: 3972.0
If we subtract 26 from 29, we get 3.
Take the next digit (9) from the dividend and append it to 3, then repeat: 39 / 13

On to step 6:
The number 13 fits into 39 3 times, leaving a remainder of 0.
Put 3 as the next digit of the answer. 
Result so far: 39723.0
Subtracting 39 from 39 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 7:
13 can be fit into 0 0 times, resulting in a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 39723.0
If we take 0 away from 0, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 8:
13 goes into 0 0 times with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 39723.0
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final result is 39723.0 with a remainder of 0.0.