We divide 401845 by 1
The aim is to understand the frequency of 1 in 401845.

Moving on to step 1:
1 can be fit into 4 4 times, resulting in a remainder of 0.
Put 4 as the next digit of the answer. 
Result so far: 4.0
The remainder is 0 after subtracting 4 from 4.
Bring next digit (0) of the dividend behind the 0 and repeat the process: 0 / 1

Moving on to step 2:
1 can be fit into 0 0 times, resulting in a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 40.0
The remainder is 0 after subtracting 0 from 0.
Grab the next digit (1) from the dividend, add it to 0, then carry on: 1 / 1

Step 3:
The number 1 fits into 1 1 times, leaving a remainder of 0.
Record the quotient 1 as the next digit in the result. 
Result so far: 401.0
If we take 1 away from 1, we end up with 0.
Take the next digit (8) from the dividend and append it to 0, then repeat: 8 / 1

Step 4:
If we divide 8 by 1, we get 8 and a remainder of 0.
Record the quotient 8 as the next digit in the result. 
Result so far: 4018.0
If we subtract 8 from 8, we get 0.
Include the next digit (4) from the dividend after 0, then repeat: 4 / 1

Advancing to step 5:
4 divided by 1 is 4 with a remainder of 0.
Write down 4 as next digit of the result. 
Result so far: 40184.0
Subtract 4 from 4 to get 0.
Grab the next digit (5) from the dividend, add it to 0, then carry on: 5 / 1

On to step 6:
1 goes into 5 5 times with a remainder of 0.
The next digit of our result is 5. 
Result so far: 401845.0
Subtract 5 from 5 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.

Step 7:
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: 401845.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.

Advancing to step 8:
0 divided by 1 is 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 401845.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.

The final result is 401845.0 with a remainder of 0.0.