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

Advancing to step 1:
The number 59 fits into 8 0 times, leaving a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 8 leaves us with 8.
Grab the next digit (5) from the dividend, add it to 8, then carry on: 85 / 59

On to step 2:
59 can be fit into 85 1 times, resulting in a remainder of 26.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we take 59 away from 85, we end up with 26.
Include the next digit (8) from the dividend after 26, then repeat: 268 / 59

Step 3:
59 goes into 268 4 times with a remainder of 32.
Put 4 as the next digit of the answer. 
Result so far: 14.0
Subtracting 236 from 268 leaves us with 32.
Bring next digit (2) of the dividend behind the 32 and repeat the process: 322 / 59

Step 4:
322 divided by 59 is 5 with a remainder of 27.
The number 5 becomes the next digit in our result. 
Result so far: 145.0
If we subtract 295 from 322, we get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Advancing to step 5:
270 divided by 59 is 4 with a remainder of 34.
Write down 4 as next digit of the result. 
Result so far: 145.4
Subtracting 236 from 270 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.

Advancing to step 6:
59 can be fit into 340 5 times, resulting in a remainder of 45.
The number 5 becomes the next digit in our result. 
Result so far: 145.45
Subtract 295 from 340 to get 45.
Since there are no more digits in the dividend, we add a zero to the remainder making it 450, and continue the process.

On to step 7:
59 goes into 450 7 times with a remainder of 37.
Use 7 as the next digit of our solution. 
Result so far: 145.457
If we subtract 413 from 450, we get 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Moving on to step 8:
If we divide 370 by 59, we get 6 and a remainder of 16.
The number 6 becomes the next digit in our result. 
Result so far: 145.4576
Subtracting 354 from 370 leaves us 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.

Step 9:
59 goes into 160 2 times with a remainder of 42.
Use 2 as the next digit of our solution. 
Result so far: 145.45762
If we subtract 118 from 160, we get 42.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

Step 10:
420 divided by 59 is 7 with a remainder of 7.
Put 7 as the next digit of the answer. 
Result so far: 145.457627
The remainder is 7 after subtracting 413 from 420.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Advancing to step 11:
The number 59 fits into 70 1 times, leaving a remainder of 11.
Use 1 as the next digit of our solution. 
Result so far: 145.4576271
If we subtract 59 from 70, we get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Step 12:
59 can be fit into 110 1 times, resulting in a remainder of 51.
Put 1 as the next digit of the answer. 
Result so far: 145.45762711
Deduct 59 from 110 and we're left 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.

Our division results in 145.45762711 with a remaining 5.1e-08.