878541 divided by 39 
The aim is to understand the frequency of 39 in 878541.

On to step 1:
8 divided by 39 is 0 with a remainder of 8.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 8 after subtracting 0 from 8.
Include the next digit (7) from the dividend after 8, then repeat: 87 / 39

Advancing to step 2:
39 goes into 87 2 times with a remainder of 9.
Put 2 as the next digit of the answer. 
Result so far: 2.0
If we subtract 78 from 87, we get 9.
Bring next digit (8) of the dividend behind the 9 and repeat the process: 98 / 39

Step 3:
39 can be fit into 98 2 times, resulting in a remainder of 20.
The number 2 becomes the next digit in our result. 
Result so far: 22.0
If we take 78 away from 98, we end up with 20.
Include the next digit (5) from the dividend after 20, then repeat: 205 / 39

Going ahead to step 4:
205 divided by 39 is 5 with a remainder of 10.
Write down 5 as next digit of the result. 
Result so far: 225.0
Deduct 195 from 205 and we're left with 10.
Fetch the next digit (4) from the dividend, attach it to 10 and continue: 104 / 39

Step 5:
The number 39 fits into 104 2 times, leaving a remainder of 26.
Write down 2 as next digit of the result. 
Result so far: 2252.0
Subtract 78 from 104 to get 26.
Fetch the next digit (1) from the dividend, attach it to 26 and continue: 261 / 39

Advancing to step 6:
The number 39 fits into 261 6 times, leaving a remainder of 27.
Use 6 as the next digit of our solution. 
Result so far: 22526.0
Subtract 234 from 261 to get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Step 7:
The number 39 fits into 270 6 times, leaving a remainder of 36.
Record the quotient 6 as the next digit in the result. 
Result so far: 22526.6
Deduct 234 from 270 and we're left with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Going ahead to step 8:
The number 39 fits into 360 9 times, leaving a remainder of 9.
The number 9 becomes the next digit in our result. 
Result so far: 22526.69
Subtract 351 from 360 to get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Moving on to step 9:
When dividing 90 by 39, we get 2 with a remainder of 12.
The number 2 becomes the next digit in our result. 
Result so far: 22526.692
Subtract 78 from 90 to get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Step 10:
The number 39 fits into 120 3 times, leaving a remainder of 3.
Use 3 as the next digit of our solution. 
Result so far: 22526.6923
If we take 117 away from 120, we end up with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Moving on to step 11:
The number 39 fits into 30 0 times, leaving a remainder of 30.
Use 0 as the next digit of our solution. 
Result so far: 22526.6923
Subtracting 0 from 30 leaves us with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 12:
300 divided by 39 is 7 with a remainder of 27.
Use 7 as the next digit of our solution. 
Result so far: 22526.692307
If we take 273 away from 300, we end up with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Moving on to step 13:
39 goes into 270 6 times with a remainder of 36.
Record the quotient 6 as the next digit in the result. 
Result so far: 22526.6923076
Subtract 234 from 270 to get 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Advancing to step 14:
The number 39 fits into 360 9 times, leaving a remainder of 9.
Use 9 as the next digit of our solution. 
Result so far: 22526.69230769
Subtracting 351 from 360 leaves us with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

The final result is 22526.69230769 with a remainder of 9e-09.