We divide 178877 by 4
The aim is to understand the frequency of 4 in 178877.

Advancing to step 1:
4 can be fit into 1 0 times, resulting in a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Fetch the next digit (7) from the dividend, attach it to 1 and continue: 17 / 4

Going ahead to step 2:
4 goes into 17 4 times with a remainder of 1.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
Deduct 16 from 17 and we're left with 1.
Bring next digit (8) of the dividend behind the 1 and repeat the process: 18 / 4

Advancing to step 3:
When dividing 18 by 4, we get 4 with a remainder of 2.
Write down 4 as next digit of the result. 
Result so far: 44.0
The remainder is 2 after subtracting 16 from 18.
Bring next digit (8) of the dividend behind the 2 and repeat the process: 28 / 4

Let's proceed to step 4:
The number 4 fits into 28 7 times, leaving a remainder of 0.
Put 7 as the next digit of the answer. 
Result so far: 447.0
If we take 28 away from 28, we end up with 0.
Take the next digit (7) from the dividend and append it to 0, then repeat: 7 / 4

Let's proceed to step 5:
When dividing 7 by 4, we get 1 with a remainder of 3.
Record the quotient 1 as the next digit in the result. 
Result so far: 4471.0
Subtract 4 from 7 to get 3.
Grab the next digit (7) from the dividend, add it to 3, then carry on: 37 / 4

On to step 6:
4 can be fit into 37 9 times, resulting in a remainder of 1.
The number 9 becomes the next digit in our result. 
Result so far: 44719.0
Subtracting 36 from 37 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.

Let's proceed to step 7:
10 divided by 4 is 2 with a remainder of 2.
Use 2 as the next digit of our solution. 
Result so far: 44719.2
If we subtract 8 from 10, we get 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 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: 44719.25
If we take 20 away from 20, 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.

Moving on to step 9:
If we divide 0 by 4, we get 0 and a remainder of 0.
The next digit of our result is 0. 
Result so far: 44719.25
Subtracting 0 from 0 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.

Step 10:
If we divide 0 by 4, we get 0 and a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 44719.25
Subtracting 0 from 0 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.

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