We're dividing 585246 by 13 
Let's see how many times 13 fits into 585246.

Let's proceed to step 1:
5 divided by 13 is 0 with a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Grab the next digit (8) from the dividend, add it to 5, then carry on: 58 / 13

On to step 2:
13 goes into 58 4 times with a remainder of 6.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
Subtracting 52 from 58 leaves us with 6.
Take the next digit (5) from the dividend and append it to 6, then repeat: 65 / 13

Moving on to step 3:
13 goes into 65 5 times with a remainder of 0.
The next digit of our result is 5. 
Result so far: 45.0
The remainder is 0 after subtracting 65 from 65.
Bring next digit (2) of the dividend behind the 0 and repeat the process: 2 / 13

Let's proceed to step 4:
The number 13 fits into 2 0 times, leaving a remainder of 2.
Use 0 as the next digit of our solution. 
Result so far: 450.0
The remainder is 2 after subtracting 0 from 2.
Include the next digit (4) from the dividend after 2, then repeat: 24 / 13

Advancing to step 5:
24 divided by 13 is 1 with a remainder of 11.
The next digit of our result is 1. 
Result so far: 4501.0
The remainder is 11 after subtracting 13 from 24.
Include the next digit (6) from the dividend after 11, then repeat: 116 / 13

Let's proceed to step 6:
The number 13 fits into 116 8 times, leaving a remainder of 12.
Record the quotient 8 as the next digit in the result. 
Result so far: 45018.0
Deduct 104 from 116 and we're left with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

On to step 7:
If we divide 120 by 13, we get 9 and a remainder of 3.
The next digit of our result is 9. 
Result so far: 45018.9
If we take 117 away from 120, we end up with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 8:
The number 13 fits into 30 2 times, leaving a remainder of 4.
The number 2 becomes the next digit in our result. 
Result so far: 45018.92
Deduct 26 from 30 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 9:
13 can be fit into 40 3 times, resulting in a remainder of 1.
Write down 3 as next digit of the result. 
Result so far: 45018.923
Subtracting 39 from 40 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 10:
The number 13 fits into 10 0 times, leaving a remainder of 10.
The next digit of our result is 0. 
Result so far: 45018.923
Subtract 0 from 10 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 11:
100 divided by 13 is 7 with a remainder of 9.
Record the quotient 7 as the next digit in the result. 
Result so far: 45018.92307
If we take 91 away from 100, we end up with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Let's proceed to step 12:
13 goes into 90 6 times with a remainder of 12.
Write down 6 as next digit of the result. 
Result so far: 45018.923076
If we take 78 away from 90, we end up with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Advancing to step 13:
The number 13 fits into 120 9 times, leaving a remainder of 3.
Use 9 as the next digit of our solution. 
Result so far: 45018.9230769
Deduct 117 from 120 and we're left with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Advancing to step 14:
13 can be fit into 30 2 times, resulting in a remainder of 4.
Write down 2 as next digit of the result. 
Result so far: 45018.92307692
The remainder is 4 after subtracting 26 from 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

The final outcome is 45018.92307692, with a leftover of 4e-09.