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

Let's proceed to step 1:
3 divided by 4 is 0 with a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Grab the next digit (1) from the dividend, add it to 3, then carry on: 31 / 4

On to step 2:
4 goes into 31 7 times with a remainder of 3.
Write down 7 as next digit of the result. 
Result so far: 7.0
Subtracting 28 from 31 leaves us with 3.
Append the next digit (7) from the dividend to 3 and continue with: 37 / 4

Advancing to step 3:
4 goes into 37 9 times with a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 79.0
If we subtract 36 from 37, we get 1.
Take the next digit (4) from the dividend and append it to 1, then repeat: 14 / 4

On to step 4:
If we divide 14 by 4, we get 3 and a remainder of 2.
Use 3 as the next digit of our solution. 
Result so far: 793.0
The remainder is 2 after subtracting 12 from 14.
Bring next digit (0) of the dividend behind the 2 and repeat the process: 20 / 4

Let's proceed to step 5:
When dividing 20 by 4, we get 5 with a remainder of 0.
The next digit of our result is 5. 
Result so far: 7935.0
The remainder is 0 after subtracting 20 from 20.
Fetch the next digit (8) from the dividend, attach it to 0 and continue: 8 / 4

Step 6:
If we divide 8 by 4, we get 2 and a remainder of 0.
The number 2 becomes the next digit in our result. 
Result so far: 79352.0
Subtracting 8 from 8 leaves us 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 7:
4 goes into 0 0 times with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 79352.0
Subtracting 0 from 0 leaves us 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.

Let's proceed to step 8:
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: 79352.0
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 quotient of the division is 79352.0, and the remainder is 0.0.