We look at the division of 117587 by 4 
The aim is to understand the frequency of 4 in 117587.

Let's proceed to step 1:
4 can be fit into 1 0 times, resulting in a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Bring next digit (1) of the dividend behind the 1 and repeat the process: 11 / 4

Going ahead to step 2:
11 divided by 4 is 2 with a remainder of 3.
Use 2 as the next digit of our solution. 
Result so far: 2.0
Subtracting 8 from 11 leaves us with 3.
Fetch the next digit (7) from the dividend, attach it to 3 and continue: 37 / 4

On to step 3:
When dividing 37 by 4, we get 9 with a remainder of 1.
The next digit of our result is 9. 
Result so far: 29.0
If we take 36 away from 37, we end up with 1.
Grab the next digit (5) from the dividend, add it to 1, then carry on: 15 / 4

Moving on to step 4:
The number 4 fits into 15 3 times, leaving a remainder of 3.
Use 3 as the next digit of our solution. 
Result so far: 293.0
The remainder is 3 after subtracting 12 from 15.
Take the next digit (8) from the dividend and append it to 3, then repeat: 38 / 4

On to step 5:
The number 4 fits into 38 9 times, leaving a remainder of 2.
Write down 9 as next digit of the result. 
Result so far: 2939.0
Deduct 36 from 38 and we're left with 2.
Take the next digit (7) from the dividend and append it to 2, then repeat: 27 / 4

Step 6:
4 goes into 27 6 times with a remainder of 3.
Use 6 as the next digit of our solution. 
Result so far: 29396.0
Subtracting 24 from 27 leaves us with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Advancing to step 7:
30 divided by 4 is 7 with a remainder of 2.
Record the quotient 7 as the next digit in the result. 
Result so far: 29396.7
If we take 28 away from 30, we end up 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.

Moving on to step 8:
4 goes into 20 5 times with a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 29396.75
Deduct 20 from 20 and we're left 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.

Moving on to step 9:
When dividing 0 by 4, we get 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 29396.75
If we subtract 0 from 0, we 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.

Step 10:
4 goes into 0 0 times with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 29396.75
Deduct 0 from 0 and we're left 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.

The quotient of the division is 29396.75, and the remainder is 0.0.