We look at the division of 40085642 by 844 
The aim is to understand the frequency of 844 in 40085642.

Advancing to step 1:
The number 844 fits into 4 0 times, leaving a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 844

Moving on to step 2:
844 goes into 40 0 times with a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 40 after subtracting 0 from 40.
Fetch the next digit (0) from the dividend, attach it to 40 and continue: 400 / 844

Moving on to step 3:
When dividing 400 by 844, we get 0 with a remainder of 400.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 400, we end up with 400.
Take the next digit (8) from the dividend and append it to 400, then repeat: 4008 / 844

Going ahead to step 4:
The number 844 fits into 4008 4 times, leaving a remainder of 632.
Record the quotient 4 as the next digit in the result. 
Result so far: 4.0
Subtract 3376 from 4008 to get 632.
Append the next digit (5) from the dividend to 632 and continue with: 6325 / 844

On to step 5:
6325 divided by 844 is 7 with a remainder of 417.
The number 7 becomes the next digit in our result. 
Result so far: 47.0
The remainder is 417 after subtracting 5908 from 6325.
Fetch the next digit (6) from the dividend, attach it to 417 and continue: 4176 / 844

Advancing to step 6:
4176 divided by 844 is 4 with a remainder of 800.
Write down 4 as next digit of the result. 
Result so far: 474.0
Subtracting 3376 from 4176 leaves us with 800.
Take the next digit (4) from the dividend and append it to 800, then repeat: 8004 / 844

Advancing to step 7:
When dividing 8004 by 844, we get 9 with a remainder of 408.
The number 9 becomes the next digit in our result. 
Result so far: 4749.0
Deduct 7596 from 8004 and we're left with 408.
Include the next digit (2) from the dividend after 408, then repeat: 4082 / 844

Step 8:
When dividing 4082 by 844, we get 4 with a remainder of 706.
The next digit of our result is 4. 
Result so far: 47494.0
Subtracting 3376 from 4082 leaves us with 706.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7060, and continue the process.

Going ahead to step 9:
If we divide 7060 by 844, we get 8 and a remainder of 308.
Record the quotient 8 as the next digit in the result. 
Result so far: 47494.8
The remainder is 308 after subtracting 6752 from 7060.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3080, and continue the process.

Going ahead to step 10:
When dividing 3080 by 844, we get 3 with a remainder of 548.
Put 3 as the next digit of the answer. 
Result so far: 47494.83
The remainder is 548 after subtracting 2532 from 3080.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5480, and continue the process.

Moving on to step 11:
5480 divided by 844 is 6 with a remainder of 416.
Put 6 as the next digit of the answer. 
Result so far: 47494.836
If we take 5064 away from 5480, we end up with 416.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4160, and continue the process.

Step 12:
The number 844 fits into 4160 4 times, leaving a remainder of 784.
The next digit of our result is 4. 
Result so far: 47494.8364
Subtracting 3376 from 4160 leaves us with 784.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7840, and continue the process.

Going ahead to step 13:
When dividing 7840 by 844, we get 9 with a remainder of 244.
The number 9 becomes the next digit in our result. 
Result so far: 47494.83649
Deduct 7596 from 7840 and we're left with 244.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2440, and continue the process.

Moving on to step 14:
When dividing 2440 by 844, we get 2 with a remainder of 752.
Put 2 as the next digit of the answer. 
Result so far: 47494.836492
If we subtract 1688 from 2440, we get 752.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7520, and continue the process.

Moving on to step 15:
7520 divided by 844 is 8 with a remainder of 768.
Put 8 as the next digit of the answer. 
Result so far: 47494.8364928
Subtracting 6752 from 7520 leaves us with 768.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7680, and continue the process.

Moving on to step 16:
The number 844 fits into 7680 9 times, leaving a remainder of 84.
Write down 9 as next digit of the result. 
Result so far: 47494.83649289
If we take 7596 away from 7680, we end up with 84.
Since there are no more digits in the dividend, we add a zero to the remainder making it 840, and continue the process.

The final result is 47494.83649289 with a remainder of 8.4e-08.