We look at the division of 56879 by 39 
The aim is to understand the frequency of 39 in 56879.

Going ahead to step 1:
If we divide 5 by 39, we get 0 and a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Bring next digit (6) of the dividend behind the 5 and repeat the process: 56 / 39

Moving on to step 2:
If we divide 56 by 39, we get 1 and a remainder of 17.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we subtract 39 from 56, we get 17.
Fetch the next digit (8) from the dividend, attach it to 17 and continue: 178 / 39

Step 3:
When dividing 178 by 39, we get 4 with a remainder of 22.
The number 4 becomes the next digit in our result. 
Result so far: 14.0
Subtract 156 from 178 to get 22.
Append the next digit (7) from the dividend to 22 and continue with: 227 / 39

Advancing to step 4:
227 divided by 39 is 5 with a remainder of 32.
Use 5 as the next digit of our solution. 
Result so far: 145.0
Subtract 195 from 227 to get 32.
Take the next digit (9) from the dividend and append it to 32, then repeat: 329 / 39

Step 5:
When dividing 329 by 39, we get 8 with a remainder of 17.
Record the quotient 8 as the next digit in the result. 
Result so far: 1458.0
Deduct 312 from 329 and we're left with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Step 6:
170 divided by 39 is 4 with a remainder of 14.
The next digit of our result is 4. 
Result so far: 1458.4
If we take 156 away from 170, we end up 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.

Advancing to step 7:
39 goes into 140 3 times with a remainder of 23.
Record the quotient 3 as the next digit in the result. 
Result so far: 1458.43
If we take 117 away from 140, we end up with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

On to step 8:
If we divide 230 by 39, we get 5 and a remainder of 35.
Put 5 as the next digit of the answer. 
Result so far: 1458.435
If we subtract 195 from 230, we get 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

On to step 9:
If we divide 350 by 39, we get 8 and a remainder of 38.
Use 8 as the next digit of our solution. 
Result so far: 1458.4358
If we take 312 away from 350, 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.

Step 10:
The number 39 fits into 380 9 times, leaving a remainder of 29.
Put 9 as the next digit of the answer. 
Result so far: 1458.43589
Subtracting 351 from 380 leaves us 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.

Moving on to step 11:
39 can be fit into 290 7 times, resulting in a remainder of 17.
Write down 7 as next digit of the result. 
Result so far: 1458.435897
Subtracting 273 from 290 leaves us with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Advancing to step 12:
If we divide 170 by 39, we get 4 and a remainder of 14.
Write down 4 as next digit of the result. 
Result so far: 1458.4358974
Deduct 156 from 170 and we're left 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.

Advancing to step 13:
39 can be fit into 140 3 times, resulting in a remainder of 23.
Record the quotient 3 as the next digit in the result. 
Result so far: 1458.43589743
Subtract 117 from 140 to get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

The final outcome is 1458.43589743, with a leftover of 2.3e-08.