We're dividing 580165 by 77 
Let's see how many times 77 fits into 580165.

On to step 1:
77 can be fit into 5 0 times, resulting in a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Grab the next digit (8) from the dividend, add it to 5, then carry on: 58 / 77

On to step 2:
77 can be fit into 58 0 times, resulting in a remainder of 58.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 58 to get 58.
Bring next digit (0) of the dividend behind the 58 and repeat the process: 580 / 77

Going ahead to step 3:
580 divided by 77 is 7 with a remainder of 41.
Record the quotient 7 as the next digit in the result. 
Result so far: 7.0
Deduct 539 from 580 and we're left with 41.
Bring next digit (1) of the dividend behind the 41 and repeat the process: 411 / 77

Let's proceed to step 4:
If we divide 411 by 77, we get 5 and a remainder of 26.
Put 5 as the next digit of the answer. 
Result so far: 75.0
If we subtract 385 from 411, we get 26.
Take the next digit (6) from the dividend and append it to 26, then repeat: 266 / 77

On to step 5:
77 can be fit into 266 3 times, resulting in a remainder of 35.
The next digit of our result is 3. 
Result so far: 753.0
Subtracting 231 from 266 leaves us with 35.
Append the next digit (5) from the dividend to 35 and continue with: 355 / 77

Going ahead to step 6:
355 divided by 77 is 4 with a remainder of 47.
Put 4 as the next digit of the answer. 
Result so far: 7534.0
The remainder is 47 after subtracting 308 from 355.
Since there are no more digits in the dividend, we add a zero to the remainder making it 470, and continue the process.

Going ahead to step 7:
77 can be fit into 470 6 times, resulting in a remainder of 8.
Record the quotient 6 as the next digit in the result. 
Result so far: 7534.6
If we take 462 away from 470, we end up with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 8:
77 can be fit into 80 1 times, resulting in a remainder of 3.
The number 1 becomes the next digit in our result. 
Result so far: 7534.61
Subtract 77 from 80 to 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.

Let's proceed to step 9:
If we divide 30 by 77, we get 0 and a remainder of 30.
Use 0 as the next digit of our solution. 
Result so far: 7534.61
Deduct 0 from 30 and we're left 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 77, we get 3 with a remainder of 69.
Record the quotient 3 as the next digit in the result. 
Result so far: 7534.6103
Subtracting 231 from 300 leaves us with 69.
Since there are no more digits in the dividend, we add a zero to the remainder making it 690, and continue the process.

On to step 11:
If we divide 690 by 77, we get 8 and a remainder of 74.
Write down 8 as next digit of the result. 
Result so far: 7534.61038
If we subtract 616 from 690, we get 74.
Since there are no more digits in the dividend, we add a zero to the remainder making it 740, and continue the process.

On to step 12:
77 can be fit into 740 9 times, resulting in a remainder of 47.
Put 9 as the next digit of the answer. 
Result so far: 7534.610389
The remainder is 47 after subtracting 693 from 740.
Since there are no more digits in the dividend, we add a zero to the remainder making it 470, and continue the process.

On to step 13:
The number 77 fits into 470 6 times, leaving a remainder of 8.
Record the quotient 6 as the next digit in the result. 
Result so far: 7534.6103896
Subtract 462 from 470 to 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.

Going ahead to step 14:
If we divide 80 by 77, we get 1 and a remainder of 3.
Record the quotient 1 as the next digit in the result. 
Result so far: 7534.61038961
The remainder is 3 after subtracting 77 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

After the division, we end up with 7534.61038961 and a remainder of 3e-09.