We're dividing 23585 by 78 
The aim is to understand the frequency of 78 in 23585.

On to step 1:
The number 78 fits into 2 0 times, leaving a remainder of 2.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 2 after subtracting 0 from 2.
Take the next digit (3) from the dividend and append it to 2, then repeat: 23 / 78

On to step 2:
78 goes into 23 0 times with a remainder of 23.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 23, we end up with 23.
Bring next digit (5) of the dividend behind the 23 and repeat the process: 235 / 78

On to step 3:
The number 78 fits into 235 3 times, leaving a remainder of 1.
The next digit of our result is 3. 
Result so far: 3.0
Deduct 234 from 235 and we're left with 1.
Take the next digit (8) from the dividend and append it to 1, then repeat: 18 / 78

Advancing to step 4:
If we divide 18 by 78, we get 0 and a remainder of 18.
Put 0 as the next digit of the answer. 
Result so far: 30.0
If we take 0 away from 18, we end up with 18.
Take the next digit (5) from the dividend and append it to 18, then repeat: 185 / 78

Step 5:
If we divide 185 by 78, we get 2 and a remainder of 29.
Put 2 as the next digit of the answer. 
Result so far: 302.0
If we take 156 away from 185, we end up with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Going ahead to step 6:
If we divide 290 by 78, we get 3 and a remainder of 56.
Put 3 as the next digit of the answer. 
Result so far: 302.3
The remainder is 56 after subtracting 234 from 290.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

Going ahead to step 7:
The number 78 fits into 560 7 times, leaving a remainder of 14.
Record the quotient 7 as the next digit in the result. 
Result so far: 302.37
Subtract 546 from 560 to get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Advancing to step 8:
The number 78 fits into 140 1 times, leaving a remainder of 62.
Write down 1 as next digit of the result. 
Result so far: 302.371
Subtract 78 from 140 to get 62.
Since there are no more digits in the dividend, we add a zero to the remainder making it 620, and continue the process.

On to step 9:
The number 78 fits into 620 7 times, leaving a remainder of 74.
The number 7 becomes the next digit in our result. 
Result so far: 302.3717
Deduct 546 from 620 and we're left with 74.
Since there are no more digits in the dividend, we add a zero to the remainder making it 740, and continue the process.

Going ahead to step 10:
78 can be fit into 740 9 times, resulting in a remainder of 38.
Use 9 as the next digit of our solution. 
Result so far: 302.37179
If we take 702 away from 740, we end up with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

On to step 11:
78 can be fit into 380 4 times, resulting in a remainder of 68.
Use 4 as the next digit of our solution. 
Result so far: 302.371794
If we subtract 312 from 380, we get 68.
Since there are no more digits in the dividend, we add a zero to the remainder making it 680, and continue the process.

Step 12:
78 can be fit into 680 8 times, resulting in a remainder of 56.
Put 8 as the next digit of the answer. 
Result so far: 302.3717948
Subtract 624 from 680 to get 56.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

Let's proceed to step 13:
When dividing 560 by 78, we get 7 with a remainder of 14.
Record the quotient 7 as the next digit in the result. 
Result so far: 302.37179487
Subtracting 546 from 560 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

The final outcome is 302.37179487, with a leftover of 1.4e-08.