We're dividing 585774 by 37 
The aim is to understand the frequency of 37 in 585774.

Advancing to step 1:
If we divide 5 by 37, we get 0 and a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Append the next digit (8) from the dividend to 5 and continue with: 58 / 37

Going ahead to step 2:
The number 37 fits into 58 1 times, leaving a remainder of 21.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Subtract 37 from 58 to get 21.
Bring next digit (5) of the dividend behind the 21 and repeat the process: 215 / 37

On to step 3:
If we divide 215 by 37, we get 5 and a remainder of 30.
Use 5 as the next digit of our solution. 
Result so far: 15.0
The remainder is 30 after subtracting 185 from 215.
Fetch the next digit (7) from the dividend, attach it to 30 and continue: 307 / 37

Advancing to step 4:
If we divide 307 by 37, we get 8 and a remainder of 11.
The next digit of our result is 8. 
Result so far: 158.0
If we subtract 296 from 307, we get 11.
Bring next digit (7) of the dividend behind the 11 and repeat the process: 117 / 37

Advancing to step 5:
37 goes into 117 3 times with a remainder of 6.
Write down 3 as next digit of the result. 
Result so far: 1583.0
Deduct 111 from 117 and we're left with 6.
Take the next digit (4) from the dividend and append it to 6, then repeat: 64 / 37

On to step 6:
37 can be fit into 64 1 times, resulting in a remainder of 27.
The next digit of our result is 1. 
Result so far: 15831.0
Deduct 37 from 64 and we're left with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Moving on to step 7:
37 goes into 270 7 times with a remainder of 11.
Record the quotient 7 as the next digit in the result. 
Result so far: 15831.7
Subtracting 259 from 270 leaves us 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.

Going ahead to step 8:
The number 37 fits into 110 2 times, leaving a remainder of 36.
Write down 2 as next digit of the result. 
Result so far: 15831.72
If we take 74 away from 110, we end up with 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 9:
The number 37 fits into 360 9 times, leaving a remainder of 27.
The number 9 becomes the next digit in our result. 
Result so far: 15831.729
If we take 333 away from 360, we end up with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

On to step 10:
270 divided by 37 is 7 with a remainder of 11.
Put 7 as the next digit of the answer. 
Result so far: 15831.7297
If we subtract 259 from 270, 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.

Going ahead to step 11:
37 goes into 110 2 times with a remainder of 36.
Put 2 as the next digit of the answer. 
Result so far: 15831.72972
If we take 74 away from 110, we end up with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Going ahead to step 12:
The number 37 fits into 360 9 times, leaving a remainder of 27.
Use 9 as the next digit of our solution. 
Result so far: 15831.729729
Deduct 333 from 360 and we're left with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Going ahead to step 13:
When dividing 270 by 37, we get 7 with a remainder of 11.
The next digit of our result is 7. 
Result so far: 15831.7297297
The remainder is 11 after subtracting 259 from 270.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

On to step 14:
The number 37 fits into 110 2 times, leaving a remainder of 36.
Put 2 as the next digit of the answer. 
Result so far: 15831.72972972
Subtracting 74 from 110 leaves us with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

The final outcome is 15831.72972972, with a leftover of 3.6e-08.