We look at the division of 585861 by 51 
We want to figure out the number of times 585861 can be divided by 51.

Let's proceed to step 1:
The number 51 fits into 5 0 times, leaving a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Fetch the next digit (8) from the dividend, attach it to 5 and continue: 58 / 51

Advancing to step 2:
If we divide 58 by 51, we get 1 and a remainder of 7.
Write down 1 as next digit of the result. 
Result so far: 1.0
The remainder is 7 after subtracting 51 from 58.
Bring next digit (5) of the dividend behind the 7 and repeat the process: 75 / 51

Going ahead to step 3:
75 divided by 51 is 1 with a remainder of 24.
The next digit of our result is 1. 
Result so far: 11.0
The remainder is 24 after subtracting 51 from 75.
Grab the next digit (8) from the dividend, add it to 24, then carry on: 248 / 51

Going ahead to step 4:
The number 51 fits into 248 4 times, leaving a remainder of 44.
Use 4 as the next digit of our solution. 
Result so far: 114.0
The remainder is 44 after subtracting 204 from 248.
Fetch the next digit (6) from the dividend, attach it to 44 and continue: 446 / 51

Let's proceed to step 5:
If we divide 446 by 51, we get 8 and a remainder of 38.
Put 8 as the next digit of the answer. 
Result so far: 1148.0
The remainder is 38 after subtracting 408 from 446.
Include the next digit (1) from the dividend after 38, then repeat: 381 / 51

Let's proceed to step 6:
When dividing 381 by 51, we get 7 with a remainder of 24.
Write down 7 as next digit of the result. 
Result so far: 11487.0
Subtracting 357 from 381 leaves us with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Going ahead to step 7:
When dividing 240 by 51, we get 4 with a remainder of 36.
Use 4 as the next digit of our solution. 
Result so far: 11487.4
Subtract 204 from 240 to get 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Moving on to step 8:
The number 51 fits into 360 7 times, leaving a remainder of 3.
The next digit of our result is 7. 
Result so far: 11487.47
If we subtract 357 from 360, we get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Going ahead to step 9:
The number 51 fits into 30 0 times, leaving a remainder of 30.
Use 0 as the next digit of our solution. 
Result so far: 11487.47
If we take 0 away from 30, we end up with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 10:
When dividing 300 by 51, we get 5 with a remainder of 45.
Use 5 as the next digit of our solution. 
Result so far: 11487.4705
Deduct 255 from 300 and we're left with 45.
Since there are no more digits in the dividend, we add a zero to the remainder making it 450, and continue the process.

Moving on to step 11:
The number 51 fits into 450 8 times, leaving a remainder of 42.
Record the quotient 8 as the next digit in the result. 
Result so far: 11487.47058
Deduct 408 from 450 and we're left with 42.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

Moving on to step 12:
If we divide 420 by 51, we get 8 and a remainder of 12.
Record the quotient 8 as the next digit in the result. 
Result so far: 11487.470588
If we subtract 408 from 420, we get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

After the division, we end up with 11487.470588 and a remainder of 1.2e-06.