Let's divide 177817 by 4
The aim is to understand the frequency of 4 in 177817.

Going ahead to step 1:
When dividing 1 by 4, we get 0 with a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Grab the next digit (7) from the dividend, add it to 1, then carry on: 17 / 4

Going ahead to step 2:
If we divide 17 by 4, we get 4 and a remainder of 1.
Use 4 as the next digit of our solution. 
Result so far: 4.0
If we take 16 away from 17, we end up with 1.
Take the next digit (7) from the dividend and append it to 1, then repeat: 17 / 4

Step 3:
17 divided by 4 is 4 with a remainder of 1.
Record the quotient 4 as the next digit in the result. 
Result so far: 44.0
Subtracting 16 from 17 leaves us with 1.
Take the next digit (8) from the dividend and append it to 1, then repeat: 18 / 4

Going ahead to step 4:
The number 4 fits into 18 4 times, leaving a remainder of 2.
Use 4 as the next digit of our solution. 
Result so far: 444.0
Subtracting 16 from 18 leaves us with 2.
Fetch the next digit (1) from the dividend, attach it to 2 and continue: 21 / 4

On to step 5:
The number 4 fits into 21 5 times, leaving a remainder of 1.
Write down 5 as next digit of the result. 
Result so far: 4445.0
Deduct 20 from 21 and we're left with 1.
Bring next digit (7) of the dividend behind the 1 and repeat the process: 17 / 4

Step 6:
17 divided by 4 is 4 with a remainder of 1.
Write down 4 as next digit of the result. 
Result so far: 44454.0
Subtracting 16 from 17 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.

Advancing to step 7:
The number 4 fits into 10 2 times, leaving a remainder of 2.
Use 2 as the next digit of our solution. 
Result so far: 44454.2
If we take 8 away from 10, 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.

Advancing to step 8:
The number 4 fits into 20 5 times, leaving a remainder of 0.
The next digit of our result is 5. 
Result so far: 44454.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:
0 divided by 4 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 44454.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.

On to step 10:
4 can be fit into 0 0 times, resulting in a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 44454.25
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.

After the division, we end up with 44454.25 and a remainder of 0.0.