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

Step 1:
4 can be fit into 6 1 times, resulting in a remainder of 2.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtracting 4 from 6 leaves us with 2.
Grab the next digit (7) from the dividend, add it to 2, then carry on: 27 / 4

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

Step 3:
4 goes into 31 7 times with a remainder of 3.
Put 7 as the next digit of the answer. 
Result so far: 167.0
Subtracting 28 from 31 leaves us with 3.
Take the next digit (1) from the dividend and append it to 3, then repeat: 31 / 4

On to step 4:
When dividing 31 by 4, we get 7 with a remainder of 3.
The number 7 becomes the next digit in our result. 
Result so far: 1677.0
Subtract 28 from 31 to get 3.
Take the next digit (8) from the dividend and append it to 3, then repeat: 38 / 4

Advancing to step 5:
The number 4 fits into 38 9 times, leaving a remainder of 2.
Use 9 as the next digit of our solution. 
Result so far: 16779.0
Deduct 36 from 38 and we're left with 2.
Grab the next digit (2) from the dividend, add it to 2, then carry on: 22 / 4

Let's proceed to step 6:
4 can be fit into 22 5 times, resulting in a remainder of 2.
Record the quotient 5 as the next digit in the result. 
Result so far: 167795.0
The remainder is 2 after subtracting 20 from 22.
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 7:
The number 4 fits into 20 5 times, leaving a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 167795.5
The remainder is 0 after subtracting 20 from 20.
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 8:
4 goes into 0 0 times with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 167795.5
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.

Advancing to step 9:
4 can be fit into 0 0 times, resulting in a remainder of 0.
The next digit of our result is 0. 
Result so far: 167795.5
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.

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