We divide 399977 by 51
We want to figure out the number of times 399977 can be divided by 51.

Step 1:
51 can be fit into 3 0 times, resulting in a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Grab the next digit (9) from the dividend, add it to 3, then carry on: 39 / 51

On to step 2:
When dividing 39 by 51, we get 0 with a remainder of 39.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 39, we end up with 39.
Append the next digit (9) from the dividend to 39 and continue with: 399 / 51

Let's proceed to step 3:
When dividing 399 by 51, we get 7 with a remainder of 42.
Write down 7 as next digit of the result. 
Result so far: 7.0
Subtract 357 from 399 to get 42.
Include the next digit (9) from the dividend after 42, then repeat: 429 / 51

On to step 4:
51 goes into 429 8 times with a remainder of 21.
The next digit of our result is 8. 
Result so far: 78.0
If we take 408 away from 429, we end up with 21.
Include the next digit (7) from the dividend after 21, then repeat: 217 / 51

Advancing to step 5:
51 can be fit into 217 4 times, resulting in a remainder of 13.
Put 4 as the next digit of the answer. 
Result so far: 784.0
Subtracting 204 from 217 leaves us with 13.
Take the next digit (7) from the dividend and append it to 13, then repeat: 137 / 51

Going ahead to step 6:
When dividing 137 by 51, we get 2 with a remainder of 35.
Write down 2 as next digit of the result. 
Result so far: 7842.0
If we subtract 102 from 137, we get 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Going ahead to step 7:
If we divide 350 by 51, we get 6 and a remainder of 44.
The next digit of our result is 6. 
Result so far: 7842.6
Deduct 306 from 350 and we're left with 44.
Since there are no more digits in the dividend, we add a zero to the remainder making it 440, and continue the process.

Advancing to step 8:
51 goes into 440 8 times with a remainder of 32.
Put 8 as the next digit of the answer. 
Result so far: 7842.68
If we subtract 408 from 440, we get 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

On to step 9:
The number 51 fits into 320 6 times, leaving a remainder of 14.
Put 6 as the next digit of the answer. 
Result so far: 7842.686
If we subtract 306 from 320, we get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Step 10:
51 can be fit into 140 2 times, resulting in a remainder of 38.
Write down 2 as next digit of the result. 
Result so far: 7842.6862
If we subtract 102 from 140, we get 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Step 11:
380 divided by 51 is 7 with a remainder of 23.
Record the quotient 7 as the next digit in the result. 
Result so far: 7842.68627
If we take 357 away from 380, we end up with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Going ahead to step 12:
When dividing 230 by 51, we get 4 with a remainder of 26.
Record the quotient 4 as the next digit in the result. 
Result so far: 7842.686274
If we subtract 204 from 230, we get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Step 13:
51 goes into 260 5 times with a remainder of 5.
The next digit of our result is 5. 
Result so far: 7842.6862745
If we subtract 255 from 260, 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.

Step 14:
If we divide 50 by 51, we get 0 and a remainder of 50.
The number 0 becomes the next digit in our result. 
Result so far: 7842.6862745
Subtracting 0 from 50 leaves us with 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

In conclusion, the division gives 7842.6862745 with a balance of 5e-08.