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

Going ahead to step 1:
If we divide 1 by 4, we get 0 and a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Take the next digit (7) from the dividend and append it to 1, then repeat: 17 / 4

Going ahead to step 2:
The number 4 fits into 17 4 times, leaving a remainder of 1.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
If we subtract 16 from 17, we get 1.
Grab the next digit (0) from the dividend, add it to 1, then carry on: 10 / 4

Going ahead to step 3:
4 can be fit into 10 2 times, resulting in a remainder of 2.
Record the quotient 2 as the next digit in the result. 
Result so far: 42.0
The remainder is 2 after subtracting 8 from 10.
Take the next digit (9) from the dividend and append it to 2, then repeat: 29 / 4

Going ahead to step 4:
When dividing 29 by 4, we get 7 with a remainder of 1.
Record the quotient 7 as the next digit in the result. 
Result so far: 427.0
Subtracting 28 from 29 leaves us with 1.
Include the next digit (0) from the dividend after 1, then repeat: 10 / 4

Advancing to step 5:
The number 4 fits into 10 2 times, leaving a remainder of 2.
The next digit of our result is 2. 
Result so far: 4272.0
Subtracting 8 from 10 leaves us with 2.
Include the next digit (1) from the dividend after 2, then repeat: 21 / 4

Advancing to step 6:
If we divide 21 by 4, we get 5 and a remainder of 1.
Use 5 as the next digit of our solution. 
Result so far: 42725.0
The remainder is 1 after subtracting 20 from 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 7:
When dividing 10 by 4, we get 2 with a remainder of 2.
The next digit of our result is 2. 
Result so far: 42725.2
Subtract 8 from 10 to 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 next digit of our result is 5. 
Result so far: 42725.25
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.

Step 9:
If we divide 0 by 4, we get 0 and a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 42725.25
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.

Step 10:
When dividing 0 by 4, we get 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 42725.25
Subtract 0 from 0 to 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 42725.25, and the remainder is 0.0.