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

On to step 1:
If we divide 3 by 4, we get 0 and a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Grab the next digit (1) from the dividend, add it to 3, then carry on: 31 / 4

Moving on to step 2:
4 can be fit into 31 7 times, resulting in a remainder of 3.
Write down 7 as next digit of the result. 
Result so far: 7.0
Subtract 28 from 31 to get 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 4

On to step 3:
4 goes into 31 7 times with a remainder of 3.
Write down 7 as next digit of the result. 
Result so far: 77.0
Deduct 28 from 31 and we're left with 3.
Take the next digit (1) from the dividend and append it to 3, then repeat: 31 / 4

Going ahead to step 4:
31 divided by 4 is 7 with a remainder of 3.
The next digit of our result is 7. 
Result so far: 777.0
If we take 28 away from 31, we end up with 3.
Bring next digit (7) of the dividend behind the 3 and repeat the process: 37 / 4

Moving on to step 5:
When dividing 37 by 4, we get 9 with a remainder of 1.
The number 9 becomes the next digit in our result. 
Result so far: 7779.0
Subtract 36 from 37 to get 1.
Include the next digit (8) from the dividend after 1, then repeat: 18 / 4

Let's proceed to step 6:
18 divided by 4 is 4 with a remainder of 2.
The next digit of our result is 4. 
Result so far: 77794.0
If we subtract 16 from 18, 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.

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: 77794.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.

Moving on to step 8:
0 divided by 4 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 77794.5
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.

Advancing 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: 77794.5
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.

Our division results in 77794.5 with a remaining 0.0.