We're dividing 5031074 by 864 
The aim is to understand the frequency of 864 in 5031074.

Step 1:
The number 864 fits into 5 0 times, leaving a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 864

Advancing to step 2:
If we divide 50 by 864, we get 0 and a remainder of 50.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 50 after subtracting 0 from 50.
Bring next digit (3) of the dividend behind the 50 and repeat the process: 503 / 864

Advancing to step 3:
503 divided by 864 is 0 with a remainder of 503.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 503 and we're left with 503.
Include the next digit (1) from the dividend after 503, then repeat: 5031 / 864

Moving on to step 4:
864 can be fit into 5031 5 times, resulting in a remainder of 711.
Put 5 as the next digit of the answer. 
Result so far: 5.0
The remainder is 711 after subtracting 4320 from 5031.
Take the next digit (0) from the dividend and append it to 711, then repeat: 7110 / 864

Moving on to step 5:
When dividing 7110 by 864, we get 8 with a remainder of 198.
Use 8 as the next digit of our solution. 
Result so far: 58.0
The remainder is 198 after subtracting 6912 from 7110.
Fetch the next digit (7) from the dividend, attach it to 198 and continue: 1987 / 864

On to step 6:
1987 divided by 864 is 2 with a remainder of 259.
The next digit of our result is 2. 
Result so far: 582.0
Subtracting 1728 from 1987 leaves us with 259.
Include the next digit (4) from the dividend after 259, then repeat: 2594 / 864

Let's proceed to step 7:
If we divide 2594 by 864, we get 3 and a remainder of 2.
Record the quotient 3 as the next digit in the result. 
Result so far: 5823.0
If we subtract 2592 from 2594, we 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.

Going ahead to step 8:
When dividing 20 by 864, we get 0 with a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 5823.0
Deduct 0 from 20 and we're left with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 9:
The number 864 fits into 200 0 times, leaving a remainder of 200.
The number 0 becomes the next digit in our result. 
Result so far: 5823.0
If we take 0 away from 200, we end up with 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2000, and continue the process.

The quotient of the division is 5823.0, and the remainder is 0.2.