We're dividing 508795 by 59 
The aim is to understand the frequency of 59 in 508795.

Going ahead to step 1:
59 can be fit into 5 0 times, resulting in a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 59

Going ahead to step 2:
If we divide 50 by 59, we get 0 and a remainder of 50.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 50 after subtracting 0 from 50.
Include the next digit (8) from the dividend after 50, then repeat: 508 / 59

Advancing to step 3:
59 goes into 508 8 times with a remainder of 36.
Record the quotient 8 as the next digit in the result. 
Result so far: 8.0
Subtract 472 from 508 to get 36.
Fetch the next digit (7) from the dividend, attach it to 36 and continue: 367 / 59

Moving on to step 4:
The number 59 fits into 367 6 times, leaving a remainder of 13.
Use 6 as the next digit of our solution. 
Result so far: 86.0
The remainder is 13 after subtracting 354 from 367.
Append the next digit (9) from the dividend to 13 and continue with: 139 / 59

Advancing to step 5:
59 goes into 139 2 times with a remainder of 21.
Put 2 as the next digit of the answer. 
Result so far: 862.0
The remainder is 21 after subtracting 118 from 139.
Take the next digit (5) from the dividend and append it to 21, then repeat: 215 / 59

On to step 6:
215 divided by 59 is 3 with a remainder of 38.
Write down 3 as next digit of the result. 
Result so far: 8623.0
Subtract 177 from 215 to 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.

Let's proceed to step 7:
The number 59 fits into 380 6 times, leaving a remainder of 26.
Use 6 as the next digit of our solution. 
Result so far: 8623.6
If we take 354 away from 380, we end up with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Step 8:
260 divided by 59 is 4 with a remainder of 24.
Write down 4 as next digit of the result. 
Result so far: 8623.64
Subtracting 236 from 260 leaves us with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Going ahead to step 9:
240 divided by 59 is 4 with a remainder of 4.
Use 4 as the next digit of our solution. 
Result so far: 8623.644
If we take 236 away from 240, we end up 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.

The quotient of the division is 8623.644, and the remainder is 0.0004.