Let's divide 338789 by 58
The aim is to understand the frequency of 58 in 338789.

On to step 1:
When dividing 3 by 58, we get 0 with a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Take the next digit (3) from the dividend and append it to 3, then repeat: 33 / 58

Moving on to step 2:
58 goes into 33 0 times with a remainder of 33.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 33, we get 33.
Take the next digit (8) from the dividend and append it to 33, then repeat: 338 / 58

On to step 3:
The number 58 fits into 338 5 times, leaving a remainder of 48.
Write down 5 as next digit of the result. 
Result so far: 5.0
Deduct 290 from 338 and we're left with 48.
Fetch the next digit (7) from the dividend, attach it to 48 and continue: 487 / 58

On to step 4:
58 goes into 487 8 times with a remainder of 23.
The number 8 becomes the next digit in our result. 
Result so far: 58.0
Subtracting 464 from 487 leaves us with 23.
Include the next digit (8) from the dividend after 23, then repeat: 238 / 58

On to step 5:
When dividing 238 by 58, we get 4 with a remainder of 6.
The next digit of our result is 4. 
Result so far: 584.0
If we subtract 232 from 238, we get 6.
Take the next digit (9) from the dividend and append it to 6, then repeat: 69 / 58

Step 6:
58 goes into 69 1 times with a remainder of 11.
The number 1 becomes the next digit in our result. 
Result so far: 5841.0
Deduct 58 from 69 and we're left with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Let's proceed to step 7:
58 can be fit into 110 1 times, resulting in a remainder of 52.
The number 1 becomes the next digit in our result. 
Result so far: 5841.1
The remainder is 52 after subtracting 58 from 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Step 8:
58 goes into 520 8 times with a remainder of 56.
Put 8 as the next digit of the answer. 
Result so far: 5841.18
Subtracting 464 from 520 leaves us with 56.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

Moving on to step 9:
58 can be fit into 560 9 times, resulting in a remainder of 38.
The next digit of our result is 9. 
Result so far: 5841.189
If we subtract 522 from 560, we get 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Advancing to step 10:
58 can be fit into 380 6 times, resulting in a remainder of 32.
The next digit of our result is 6. 
Result so far: 5841.1896
If we subtract 348 from 380, we get 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

On to step 11:
When dividing 320 by 58, we get 5 with a remainder of 30.
Use 5 as the next digit of our solution. 
Result so far: 5841.18965
Deduct 290 from 320 and we're left 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:
58 goes into 300 5 times with a remainder of 10.
The number 5 becomes the next digit in our result. 
Result so far: 5841.189655
Subtracting 290 from 300 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

After the division, we end up with 5841.189655 and a remainder of 1e-06.