We look at the division of 580959 by 59 
The aim is to understand the frequency of 59 in 580959.

Advancing to step 1:
The number 59 fits into 5 0 times, leaving a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Fetch the next digit (8) from the dividend, attach it to 5 and continue: 58 / 59

Advancing to step 2:
59 goes into 58 0 times with a remainder of 58.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 58, we end up with 58.
Take the next digit (0) from the dividend and append it to 58, then repeat: 580 / 59

On to step 3:
59 can be fit into 580 9 times, resulting in a remainder of 49.
The number 9 becomes the next digit in our result. 
Result so far: 9.0
If we take 531 away from 580, we end up with 49.
Include the next digit (9) from the dividend after 49, then repeat: 499 / 59

Moving on to step 4:
59 can be fit into 499 8 times, resulting in a remainder of 27.
Put 8 as the next digit of the answer. 
Result so far: 98.0
Subtracting 472 from 499 leaves us with 27.
Include the next digit (5) from the dividend after 27, then repeat: 275 / 59

Moving on to step 5:
59 goes into 275 4 times with a remainder of 39.
Write down 4 as next digit of the result. 
Result so far: 984.0
Subtract 236 from 275 to get 39.
Append the next digit (9) from the dividend to 39 and continue with: 399 / 59

Step 6:
When dividing 399 by 59, we get 6 with a remainder of 45.
The next digit of our result is 6. 
Result so far: 9846.0
If we take 354 away from 399, we end up with 45.
Since there are no more digits in the dividend, we add a zero to the remainder making it 450, and continue the process.

Advancing to step 7:
59 can be fit into 450 7 times, resulting in a remainder of 37.
The next digit of our result is 7. 
Result so far: 9846.7
If we take 413 away from 450, we end up with 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

On to step 8:
The number 59 fits into 370 6 times, leaving a remainder of 16.
Put 6 as the next digit of the answer. 
Result so far: 9846.76
Deduct 354 from 370 and we're left with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

On to step 9:
The number 59 fits into 160 2 times, leaving a remainder of 42.
The number 2 becomes the next digit in our result. 
Result so far: 9846.762
The remainder is 42 after subtracting 118 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

Moving on to step 10:
The number 59 fits into 420 7 times, leaving a remainder of 7.
The next digit of our result is 7. 
Result so far: 9846.7627
Subtract 413 from 420 to get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Going ahead to step 11:
70 divided by 59 is 1 with a remainder of 11.
The next digit of our result is 1. 
Result so far: 9846.76271
If we take 59 away from 70, we end up 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 12:
59 can be fit into 110 1 times, resulting in a remainder of 51.
The next digit of our result is 1. 
Result so far: 9846.762711
Subtracting 59 from 110 leaves us with 51.
Since there are no more digits in the dividend, we add a zero to the remainder making it 510, and continue the process.

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