We look at the division of 787165 by 3 
We want to figure out the number of times 787165 can be divided by 3.

On to step 1:
3 can be fit into 7 2 times, resulting in a remainder of 1.
Put 2 as the next digit of the answer. 
Result so far: 2.0
Deduct 6 from 7 and we're left with 1.
Include the next digit (8) from the dividend after 1, then repeat: 18 / 3

On to step 2:
3 can be fit into 18 6 times, resulting in a remainder of 0.
The number 6 becomes the next digit in our result. 
Result so far: 26.0
Subtract 18 from 18 to get 0.
Include the next digit (7) from the dividend after 0, then repeat: 7 / 3

Let's proceed to step 3:
3 goes into 7 2 times with a remainder of 1.
The number 2 becomes the next digit in our result. 
Result so far: 262.0
If we subtract 6 from 7, we get 1.
Include the next digit (1) from the dividend after 1, then repeat: 11 / 3

On to step 4:
When dividing 11 by 3, we get 3 with a remainder of 2.
Use 3 as the next digit of our solution. 
Result so far: 2623.0
The remainder is 2 after subtracting 9 from 11.
Take the next digit (6) from the dividend and append it to 2, then repeat: 26 / 3

Advancing to step 5:
If we divide 26 by 3, we get 8 and a remainder of 2.
Use 8 as the next digit of our solution. 
Result so far: 26238.0
If we take 24 away from 26, we end up with 2.
Include the next digit (5) from the dividend after 2, then repeat: 25 / 3

Step 6:
When dividing 25 by 3, we get 8 with a remainder of 1.
Use 8 as the next digit of our solution. 
Result so far: 262388.0
Subtract 24 from 25 to get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Let's proceed to step 7:
3 can be fit into 10 3 times, resulting in a remainder of 1.
The number 3 becomes the next digit in our result. 
Result so far: 262388.3
Subtracting 9 from 10 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 8:
10 divided by 3 is 3 with a remainder of 1.
The next digit of our result is 3. 
Result so far: 262388.33
Deduct 9 from 10 and we're left with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

The quotient of the division is 262388.33, and the remainder is 0.001.