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

On to step 1:
5 divided by 58 is 0 with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Include the next digit (8) from the dividend after 5, then repeat: 58 / 58

On to step 2:
58 goes into 58 1 times with a remainder of 0.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we take 58 away from 58, we end up with 0.
Append the next digit (6) from the dividend to 0 and continue with: 6 / 58

Moving on to step 3:
The number 58 fits into 6 0 times, leaving a remainder of 6.
Use 0 as the next digit of our solution. 
Result so far: 10.0
Subtracting 0 from 6 leaves us with 6.
Take the next digit (7) from the dividend and append it to 6, then repeat: 67 / 58

Step 4:
If we divide 67 by 58, we get 1 and a remainder of 9.
The number 1 becomes the next digit in our result. 
Result so far: 101.0
If we take 58 away from 67, we end up with 9.
Take the next digit (4) from the dividend and append it to 9, then repeat: 94 / 58

Step 5:
If we divide 94 by 58, we get 1 and a remainder of 36.
The next digit of our result is 1. 
Result so far: 1011.0
Subtracting 58 from 94 leaves us with 36.
Fetch the next digit (3) from the dividend, attach it to 36 and continue: 363 / 58

Step 6:
The number 58 fits into 363 6 times, leaving a remainder of 15.
Put 6 as the next digit of the answer. 
Result so far: 10116.0
Subtracting 348 from 363 leaves us with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Going ahead to step 7:
The number 58 fits into 150 2 times, leaving a remainder of 34.
Record the quotient 2 as the next digit in the result. 
Result so far: 10116.2
Subtracting 116 from 150 leaves us with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Step 8:
340 divided by 58 is 5 with a remainder of 50.
Use 5 as the next digit of our solution. 
Result so far: 10116.25
If we subtract 290 from 340, we get 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

Let's proceed to step 9:
The number 58 fits into 500 8 times, leaving a remainder of 36.
Record the quotient 8 as the next digit in the result. 
Result so far: 10116.258
Subtract 464 from 500 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.

Step 10:
360 divided by 58 is 6 with a remainder of 12.
Put 6 as the next digit of the answer. 
Result so far: 10116.2586
Subtracting 348 from 360 leaves us with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Advancing to step 11:
When dividing 120 by 58, we get 2 with a remainder of 4.
Put 2 as the next digit of the answer. 
Result so far: 10116.25862
Subtracting 116 from 120 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 12:
If we divide 40 by 58, we get 0 and a remainder of 40.
The next digit of our result is 0. 
Result so far: 10116.25862
If we subtract 0 from 40, we get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Going ahead to step 13:
400 divided by 58 is 6 with a remainder of 52.
Write down 6 as next digit of the result. 
Result so far: 10116.2586206
Subtract 348 from 400 to get 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Let's proceed to step 14:
58 goes into 520 8 times with a remainder of 56.
The next digit of our result is 8. 
Result so far: 10116.25862068
The remainder is 56 after subtracting 464 from 520.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

The final outcome is 10116.25862068, with a leftover of 5.6e-08.