87165 divided by 4 
We want to figure out the number of times 87165 can be divided by 4.

Let's proceed to step 1:
8 divided by 4 is 2 with a remainder of 0.
Put 2 as the next digit of the answer. 
Result so far: 2.0
If we take 8 away from 8, we end up with 0.
Fetch the next digit (7) from the dividend, attach it to 0 and continue: 7 / 4

Step 2:
4 can be fit into 7 1 times, resulting in a remainder of 3.
The number 1 becomes the next digit in our result. 
Result so far: 21.0
If we subtract 4 from 7, we get 3.
Bring next digit (1) of the dividend behind the 3 and repeat the process: 31 / 4

On to step 3:
The number 4 fits into 31 7 times, leaving a remainder of 3.
Write down 7 as next digit of the result. 
Result so far: 217.0
Deduct 28 from 31 and we're left with 3.
Grab the next digit (6) from the dividend, add it to 3, then carry on: 36 / 4

Let's proceed to step 4:
36 divided by 4 is 9 with a remainder of 0.
The number 9 becomes the next digit in our result. 
Result so far: 2179.0
The remainder is 0 after subtracting 36 from 36.
Take the next digit (5) from the dividend and append it to 0, then repeat: 5 / 4

On to step 5:
4 goes into 5 1 times with a remainder of 1.
The number 1 becomes the next digit in our result. 
Result so far: 21791.0
If we subtract 4 from 5, we 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.

Moving on to step 6:
4 can be fit into 10 2 times, resulting in a remainder of 2.
Use 2 as the next digit of our solution. 
Result so far: 21791.2
Subtracting 8 from 10 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 7:
The number 4 fits into 20 5 times, leaving a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 21791.25
Subtracting 20 from 20 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 8:
When dividing 0 by 4, we get 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 21791.25
If we take 0 away from 0, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 9:
0 divided by 4 is 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 21791.25
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Our division results in 21791.25 with a remaining 0.0.