We look at the division of 317970 by 1 
The aim is to understand the frequency of 1 in 317970.

Let's proceed to step 1:
1 goes into 3 3 times with a remainder of 0.
Write down 3 as next digit of the result. 
Result so far: 3.0
If we subtract 3 from 3, we get 0.
Take the next digit (1) from the dividend and append it to 0, then repeat: 1 / 1

Let's proceed to step 2:
The number 1 fits into 1 1 times, leaving a remainder of 0.
The number 1 becomes the next digit in our result. 
Result so far: 31.0
The remainder is 0 after subtracting 1 from 1.
Grab the next digit (7) from the dividend, add it to 0, then carry on: 7 / 1

On to step 3:
If we divide 7 by 1, we get 7 and a remainder of 0.
The next digit of our result is 7. 
Result so far: 317.0
The remainder is 0 after subtracting 7 from 7.
Bring next digit (9) of the dividend behind the 0 and repeat the process: 9 / 1

On to step 4:
When dividing 9 by 1, we get 9 with a remainder of 0.
Write down 9 as next digit of the result. 
Result so far: 3179.0
The remainder is 0 after subtracting 9 from 9.
Include the next digit (7) from the dividend after 0, then repeat: 7 / 1

On to step 5:
If we divide 7 by 1, we get 7 and a remainder of 0.
The number 7 becomes the next digit in our result. 
Result so far: 31797.0
The remainder is 0 after subtracting 7 from 7.
Grab the next digit (0) from the dividend, add it to 0, then carry on: 0 / 1

Moving on to step 6:
When dividing 0 by 1, we get 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 317970.0
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.

Step 7:
When dividing 0 by 1, we get 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 317970.0
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.

Moving on to step 8:
When dividing 0 by 1, we get 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 317970.0
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 final result is 317970.0 with a remainder of 0.0.