We're dividing 5985796 by 512 
Our goal is to divide 5985796 by 512.

Advancing to step 1:
512 goes into 5 0 times with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Append the next digit (9) from the dividend to 5 and continue with: 59 / 512

Going ahead to step 2:
59 divided by 512 is 0 with a remainder of 59.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 59 after subtracting 0 from 59.
Append the next digit (8) from the dividend to 59 and continue with: 598 / 512

Going ahead to step 3:
If we divide 598 by 512, we get 1 and a remainder of 86.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtracting 512 from 598 leaves us with 86.
Bring next digit (5) of the dividend behind the 86 and repeat the process: 865 / 512

On to step 4:
The number 512 fits into 865 1 times, leaving a remainder of 353.
Put 1 as the next digit of the answer. 
Result so far: 11.0
Deduct 512 from 865 and we're left with 353.
Append the next digit (7) from the dividend to 353 and continue with: 3537 / 512

On to step 5:
3537 divided by 512 is 6 with a remainder of 465.
Put 6 as the next digit of the answer. 
Result so far: 116.0
If we take 3072 away from 3537, we end up with 465.
Bring next digit (9) of the dividend behind the 465 and repeat the process: 4659 / 512

Let's proceed to step 6:
4659 divided by 512 is 9 with a remainder of 51.
Record the quotient 9 as the next digit in the result. 
Result so far: 1169.0
Deduct 4608 from 4659 and we're left with 51.
Include the next digit (6) from the dividend after 51, then repeat: 516 / 512

Let's proceed to step 7:
If we divide 516 by 512, we get 1 and a remainder of 4.
Record the quotient 1 as the next digit in the result. 
Result so far: 11691.0
Deduct 512 from 516 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.

On to step 8:
If we divide 40 by 512, we get 0 and a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 11691.0
If we subtract 0 from 40, we get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

On to step 9:
When dividing 400 by 512, we get 0 with a remainder of 400.
The number 0 becomes the next digit in our result. 
Result so far: 11691.0
Deduct 0 from 400 and we're left with 400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4000, and continue the process.

The quotient of the division is 11691.0, and the remainder is 0.4.