We look at the division of 51087871 by 366 
Our goal is to divide 51087871 by 366.

Advancing to step 1:
366 can be fit into 5 0 times, resulting in a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Include the next digit (1) from the dividend after 5, then repeat: 51 / 366

On to step 2:
366 goes into 51 0 times with a remainder of 51.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 51 after subtracting 0 from 51.
Fetch the next digit (0) from the dividend, attach it to 51 and continue: 510 / 366

Let's proceed to step 3:
366 goes into 510 1 times with a remainder of 144.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtract 366 from 510 to get 144.
Fetch the next digit (8) from the dividend, attach it to 144 and continue: 1448 / 366

On to step 4:
The number 366 fits into 1448 3 times, leaving a remainder of 350.
The number 3 becomes the next digit in our result. 
Result so far: 13.0
If we take 1098 away from 1448, we end up with 350.
Grab the next digit (7) from the dividend, add it to 350, then carry on: 3507 / 366

Let's proceed to step 5:
If we divide 3507 by 366, we get 9 and a remainder of 213.
The number 9 becomes the next digit in our result. 
Result so far: 139.0
If we take 3294 away from 3507, we end up with 213.
Bring next digit (8) of the dividend behind the 213 and repeat the process: 2138 / 366

Moving on to step 6:
366 can be fit into 2138 5 times, resulting in a remainder of 308.
Record the quotient 5 as the next digit in the result. 
Result so far: 1395.0
Subtract 1830 from 2138 to get 308.
Take the next digit (7) from the dividend and append it to 308, then repeat: 3087 / 366

Advancing to step 7:
If we divide 3087 by 366, we get 8 and a remainder of 159.
Use 8 as the next digit of our solution. 
Result so far: 13958.0
The remainder is 159 after subtracting 2928 from 3087.
Append the next digit (1) from the dividend to 159 and continue with: 1591 / 366

Advancing to step 8:
The number 366 fits into 1591 4 times, leaving a remainder of 127.
Record the quotient 4 as the next digit in the result. 
Result so far: 139584.0
The remainder is 127 after subtracting 1464 from 1591.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1270, and continue the process.

Step 9:
1270 divided by 366 is 3 with a remainder of 172.
Put 3 as the next digit of the answer. 
Result so far: 139584.3
Deduct 1098 from 1270 and we're left with 172.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1720, and continue the process.

Let's proceed to step 10:
The number 366 fits into 1720 4 times, leaving a remainder of 256.
Write down 4 as next digit of the result. 
Result so far: 139584.34
If we take 1464 away from 1720, we end up with 256.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2560, and continue the process.

Step 11:
366 goes into 2560 6 times with a remainder of 364.
Write down 6 as next digit of the result. 
Result so far: 139584.346
If we take 2196 away from 2560, we end up with 364.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3640, and continue the process.

Advancing to step 12:
If we divide 3640 by 366, we get 9 and a remainder of 346.
Put 9 as the next digit of the answer. 
Result so far: 139584.3469
Deduct 3294 from 3640 and we're left with 346.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3460, and continue the process.

Step 13:
3460 divided by 366 is 9 with a remainder of 166.
Use 9 as the next digit of our solution. 
Result so far: 139584.34699
Deduct 3294 from 3460 and we're left with 166.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1660, and continue the process.

The quotient of the division is 139584.34699, and the remainder is 0.000166.