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

On to step 1:
When dividing 5 by 59, we get 0 with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 59

Moving on to step 2:
50 divided by 59 is 0 with a remainder of 50.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 50 and we're left with 50.
Append the next digit (5) from the dividend to 50 and continue with: 505 / 59

Moving on to step 3:
505 divided by 59 is 8 with a remainder of 33.
Use 8 as the next digit of our solution. 
Result so far: 8.0
If we take 472 away from 505, we end up with 33.
Take the next digit (8) from the dividend and append it to 33, then repeat: 338 / 59

Advancing to step 4:
59 can be fit into 338 5 times, resulting in a remainder of 43.
The next digit of our result is 5. 
Result so far: 85.0
If we take 295 away from 338, we end up with 43.
Bring next digit (6) of the dividend behind the 43 and repeat the process: 436 / 59

Step 5:
When dividing 436 by 59, we get 7 with a remainder of 23.
The number 7 becomes the next digit in our result. 
Result so far: 857.0
If we subtract 413 from 436, we get 23.
Grab the next digit (2) from the dividend, add it to 23, then carry on: 232 / 59

Step 6:
If we divide 232 by 59, we get 3 and a remainder of 55.
Put 3 as the next digit of the answer. 
Result so far: 8573.0
If we subtract 177 from 232, we get 55.
Since there are no more digits in the dividend, we add a zero to the remainder making it 550, and continue the process.

Moving on to step 7:
59 goes into 550 9 times with a remainder of 19.
Put 9 as the next digit of the answer. 
Result so far: 8573.9
Subtracting 531 from 550 leaves us with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Step 8:
59 goes into 190 3 times with a remainder of 13.
Record the quotient 3 as the next digit in the result. 
Result so far: 8573.93
Deduct 177 from 190 and we're left with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Step 9:
The number 59 fits into 130 2 times, leaving a remainder of 12.
Write down 2 as next digit of the result. 
Result so far: 8573.932
If we take 118 away from 130, we end up 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.

Let's proceed to step 10:
The number 59 fits into 120 2 times, leaving a remainder of 2.
Put 2 as the next digit of the answer. 
Result so far: 8573.9322
If we subtract 118 from 120, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

The quotient of the division is 8573.9322, and the remainder is 2e-05.