Let's divide 397767 by 51
We're looking to find how many times 51 goes into 397767.

On to step 1:
The number 51 fits into 3 0 times, leaving a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Include the next digit (9) from the dividend after 3, then repeat: 39 / 51

Advancing to step 2:
39 divided by 51 is 0 with a remainder of 39.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 39 after subtracting 0 from 39.
Fetch the next digit (7) from the dividend, attach it to 39 and continue: 397 / 51

Advancing to step 3:
The number 51 fits into 397 7 times, leaving a remainder of 40.
Put 7 as the next digit of the answer. 
Result so far: 7.0
Subtract 357 from 397 to get 40.
Include the next digit (7) from the dividend after 40, then repeat: 407 / 51

Step 4:
If we divide 407 by 51, we get 7 and a remainder of 50.
The next digit of our result is 7. 
Result so far: 77.0
Deduct 357 from 407 and we're left with 50.
Grab the next digit (6) from the dividend, add it to 50, then carry on: 506 / 51

On to step 5:
51 goes into 506 9 times with a remainder of 47.
Record the quotient 9 as the next digit in the result. 
Result so far: 779.0
If we subtract 459 from 506, we get 47.
Grab the next digit (7) from the dividend, add it to 47, then carry on: 477 / 51

Going ahead to step 6:
The number 51 fits into 477 9 times, leaving a remainder of 18.
The next digit of our result is 9. 
Result so far: 7799.0
Deduct 459 from 477 and we're left with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Going ahead to step 7:
When dividing 180 by 51, we get 3 with a remainder of 27.
The next digit of our result is 3. 
Result so far: 7799.3
Deduct 153 from 180 and we're left with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Advancing to step 8:
If we divide 270 by 51, we get 5 and a remainder of 15.
Put 5 as the next digit of the answer. 
Result so far: 7799.35
If we take 255 away from 270, we end up with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Step 9:
The number 51 fits into 150 2 times, leaving a remainder of 48.
Use 2 as the next digit of our solution. 
Result so far: 7799.352
Subtracting 102 from 150 leaves us with 48.
Since there are no more digits in the dividend, we add a zero to the remainder making it 480, and continue the process.

Moving on to step 10:
If we divide 480 by 51, we get 9 and a remainder of 21.
Write down 9 as next digit of the result. 
Result so far: 7799.3529
If we subtract 459 from 480, we get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

On to step 11:
51 can be fit into 210 4 times, resulting in a remainder of 6.
The number 4 becomes the next digit in our result. 
Result so far: 7799.35294
If we subtract 204 from 210, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Let's proceed to step 12:
When dividing 60 by 51, we get 1 with a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 7799.352941
Subtract 51 from 60 to get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Let's proceed to step 13:
If we divide 90 by 51, we get 1 and a remainder of 39.
Record the quotient 1 as the next digit in the result. 
Result so far: 7799.3529411
Deduct 51 from 90 and we're left with 39.
Since there are no more digits in the dividend, we add a zero to the remainder making it 390, and continue the process.

The final result is 7799.3529411 with a remainder of 3.9e-07.