We divide 1586 by 51
We want to divide 1586 by 51.

Step 1:
51 goes into 1 0 times with a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Append the next digit (5) from the dividend to 1 and continue with: 15 / 51

Going ahead to step 2:
The number 51 fits into 15 0 times, leaving a remainder of 15.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 15 to get 15.
Grab the next digit (8) from the dividend, add it to 15, then carry on: 158 / 51

On to step 3:
When dividing 158 by 51, we get 3 with a remainder of 5.
The number 3 becomes the next digit in our result. 
Result so far: 3.0
If we take 153 away from 158, we end up with 5.
Grab the next digit (6) from the dividend, add it to 5, then carry on: 56 / 51

On to step 4:
56 divided by 51 is 1 with a remainder of 5.
Put 1 as the next digit of the answer. 
Result so far: 31.0
If we subtract 51 from 56, 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.

Going ahead to step 5:
51 goes into 50 0 times with a remainder of 50.
Put 0 as the next digit of the answer. 
Result so far: 31.0
If we subtract 0 from 50, we get 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

Advancing to step 6:
51 goes into 500 9 times with a remainder of 41.
The number 9 becomes the next digit in our result. 
Result so far: 31.09
The remainder is 41 after subtracting 459 from 500.
Since there are no more digits in the dividend, we add a zero to the remainder making it 410, and continue the process.

Step 7:
When dividing 410 by 51, we get 8 with a remainder of 2.
Put 8 as the next digit of the answer. 
Result so far: 31.098
Deduct 408 from 410 and we're left 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.

On to step 8:
51 goes into 20 0 times with a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 31.098
The remainder is 20 after subtracting 0 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 9:
200 divided by 51 is 3 with a remainder of 47.
Put 3 as the next digit of the answer. 
Result so far: 31.09803
Deduct 153 from 200 and we're left with 47.
Since there are no more digits in the dividend, we add a zero to the remainder making it 470, and continue the process.

Advancing to step 10:
470 divided by 51 is 9 with a remainder of 11.
Use 9 as the next digit of our solution. 
Result so far: 31.098039
If we take 459 away from 470, we end up 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.

Step 11:
The number 51 fits into 110 2 times, leaving a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 31.0980392
If we subtract 102 from 110, 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.

Let's proceed to step 12:
When dividing 80 by 51, we get 1 with a remainder of 29.
Use 1 as the next digit of our solution. 
Result so far: 31.09803921
If we take 51 away from 80, we end up with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Our division results in 31.09803921 with a remaining 2.9e-08.