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

On to step 1:
4 can be fit into 1 0 times, resulting in a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Include the next digit (5) from the dividend after 1, then repeat: 15 / 4

Step 2:
If we divide 15 by 4, we get 3 and a remainder of 3.
Write down 3 as next digit of the result. 
Result so far: 3.0
Subtract 12 from 15 to get 3.
Bring next digit (7) of the dividend behind the 3 and repeat the process: 37 / 4

Step 3:
4 goes into 37 9 times with a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 39.0
Subtract 36 from 37 to get 1.
Include the next digit (3) from the dividend after 1, then repeat: 13 / 4

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

Step 5:
4 can be fit into 11 2 times, resulting in a remainder of 3.
Write down 2 as next digit of the result. 
Result so far: 3932.0
Deduct 8 from 11 and we're left with 3.
Take the next digit (0) from the dividend and append it to 3, then repeat: 30 / 4

Step 6:
If we divide 30 by 4, we get 7 and a remainder of 2.
The next digit of our result is 7. 
Result so far: 39327.0
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.

Let's proceed to step 7:
When dividing 20 by 4, we get 5 with a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 39327.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.

On to step 8:
4 goes into 0 0 times with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 39327.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.

Going ahead to step 9:
0 divided by 4 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 39327.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 39327.5, and the remainder is 0.0.