77865 ÷ 6 = 12977 R3
No problem, we've got 77865 and 6 for the division.

Step 1:
6 goes into 7 1 times with a remainder of 1.
Write down 1 as next digit of of the result. 
Result so far: 1
Subtract 6 from 7 to get 1.
Bring next digit (7) of the dividend behind the 1 and repeat the process: 17 / 6

Step 2:
6 goes into 17 2 times with a remainder of 5.
Write down 2 as next digit of of the result. 
Result so far: 12
Subtract 12 from 17 to get 5.
Bring next digit (8) of the dividend behind the 5 and repeat the process: 58 / 6

Step 3:
6 goes into 58 9 times with a remainder of 4.
Write down 9 as next digit of of the result. 
Result so far: 129
Subtract 54 from 58 to get 4.
Bring next digit (6) of the dividend behind the 4 and repeat the process: 46 / 6

Step 4:
6 goes into 46 7 times with a remainder of 4.
Write down 7 as next digit of of the result. 
Result so far: 1297
Subtract 42 from 46 to get 4.
Bring next digit (5) of the dividend behind the 4 and repeat the process: 45 / 6

Step 5:
6 goes into 45 7 times with a remainder of 3.
Write down 7 as next digit of of the result. 
Result so far: 12977
Subtract 42 from 45 to get 3.

The final result is 12977 with a remainder of 3.