Let's divide 51156227 by 586
The aim is to understand the frequency of 586 in 51156227.

Advancing to step 1:
5 divided by 586 is 0 with a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Append the next digit (1) from the dividend to 5 and continue with: 51 / 586

Step 2:
51 divided by 586 is 0 with a remainder of 51.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 51 leaves us with 51.
Include the next digit (1) from the dividend after 51, then repeat: 511 / 586

Let's proceed to step 3:
586 goes into 511 0 times with a remainder of 511.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 511 after subtracting 0 from 511.
Fetch the next digit (5) from the dividend, attach it to 511 and continue: 5115 / 586

Let's proceed to step 4:
586 goes into 5115 8 times with a remainder of 427.
Record the quotient 8 as the next digit in the result. 
Result so far: 8.0
If we subtract 4688 from 5115, we get 427.
Grab the next digit (6) from the dividend, add it to 427, then carry on: 4276 / 586

Step 5:
The number 586 fits into 4276 7 times, leaving a remainder of 174.
The next digit of our result is 7. 
Result so far: 87.0
Subtracting 4102 from 4276 leaves us with 174.
Fetch the next digit (2) from the dividend, attach it to 174 and continue: 1742 / 586

Let's proceed to step 6:
586 can be fit into 1742 2 times, resulting in a remainder of 570.
Put 2 as the next digit of the answer. 
Result so far: 872.0
If we take 1172 away from 1742, we end up with 570.
Fetch the next digit (2) from the dividend, attach it to 570 and continue: 5702 / 586

Step 7:
If we divide 5702 by 586, we get 9 and a remainder of 428.
The number 9 becomes the next digit in our result. 
Result so far: 8729.0
If we subtract 5274 from 5702, we get 428.
Take the next digit (7) from the dividend and append it to 428, then repeat: 4287 / 586

Let's proceed to step 8:
586 goes into 4287 7 times with a remainder of 185.
Write down 7 as next digit of the result. 
Result so far: 87297.0
Deduct 4102 from 4287 and we're left with 185.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1850, and continue the process.

Step 9:
1850 divided by 586 is 3 with a remainder of 92.
Put 3 as the next digit of the answer. 
Result so far: 87297.3
Subtracting 1758 from 1850 leaves us with 92.
Since there are no more digits in the dividend, we add a zero to the remainder making it 920, and continue the process.

Moving on to step 10:
The number 586 fits into 920 1 times, leaving a remainder of 334.
Put 1 as the next digit of the answer. 
Result so far: 87297.31
Deduct 586 from 920 and we're left with 334.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3340, and continue the process.

Going ahead to step 11:
3340 divided by 586 is 5 with a remainder of 410.
The number 5 becomes the next digit in our result. 
Result so far: 87297.315
The remainder is 410 after subtracting 2930 from 3340.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4100, and continue the process.

Moving on to step 12:
The number 586 fits into 4100 6 times, leaving a remainder of 584.
Use 6 as the next digit of our solution. 
Result so far: 87297.3156
Deduct 3516 from 4100 and we're left with 584.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5840, and continue the process.

Step 13:
586 goes into 5840 9 times with a remainder of 566.
Write down 9 as next digit of the result. 
Result so far: 87297.31569
The remainder is 566 after subtracting 5274 from 5840.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5660, and continue the process.

Going ahead to step 14:
586 goes into 5660 9 times with a remainder of 386.
Use 9 as the next digit of our solution. 
Result so far: 87297.315699
Subtracting 5274 from 5660 leaves us with 386.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3860, and continue the process.

The final outcome is 87297.315699, with a leftover of 3.86e-05.