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

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

Advancing to step 2:
When dividing 31 by 4, we get 7 with a remainder of 3.
The next digit of our result is 7. 
Result so far: 7.0
Subtract 28 from 31 to get 3.
Bring next digit (5) of the dividend behind the 3 and repeat the process: 35 / 4

Let's proceed to step 3:
4 can be fit into 35 8 times, resulting in a remainder of 3.
The number 8 becomes the next digit in our result. 
Result so far: 78.0
If we take 32 away from 35, we end up with 3.
Append the next digit (2) from the dividend to 3 and continue with: 32 / 4

Advancing to step 4:
When dividing 32 by 4, we get 8 with a remainder of 0.
Use 8 as the next digit of our solution. 
Result so far: 788.0
Subtract 32 from 32 to get 0.
Fetch the next digit (3) from the dividend, attach it to 0 and continue: 3 / 4

Let's proceed to step 5:
4 goes into 3 0 times with a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 7880.0
If we take 0 away from 3, we end up with 3.
Fetch the next digit (1) from the dividend, attach it to 3 and continue: 31 / 4

On to step 6:
4 can be fit into 31 7 times, resulting in a remainder of 3.
The next digit of our result is 7. 
Result so far: 78807.0
The remainder is 3 after subtracting 28 from 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Moving on to step 7:
The number 4 fits into 30 7 times, leaving a remainder of 2.
Record the quotient 7 as the next digit in the result. 
Result so far: 78807.7
If we subtract 28 from 30, 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.

Step 8:
When dividing 20 by 4, we get 5 with a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 78807.75
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:
The number 4 fits into 0 0 times, leaving a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 78807.75
The remainder is 0 after subtracting 0 from 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 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 78807.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.

The final result is 78807.75 with a remainder of 0.0.