We divide 312221 by 51
The aim is to understand the frequency of 51 in 312221.

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

Advancing to step 2:
51 can be fit into 31 0 times, resulting in a remainder of 31.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 31 after subtracting 0 from 31.
Bring next digit (2) of the dividend behind the 31 and repeat the process: 312 / 51

Step 3:
The number 51 fits into 312 6 times, leaving a remainder of 6.
Record the quotient 6 as the next digit in the result. 
Result so far: 6.0
Deduct 306 from 312 and we're left with 6.
Fetch the next digit (2) from the dividend, attach it to 6 and continue: 62 / 51

Going ahead to step 4:
51 goes into 62 1 times with a remainder of 11.
The number 1 becomes the next digit in our result. 
Result so far: 61.0
Subtracting 51 from 62 leaves us with 11.
Bring next digit (2) of the dividend behind the 11 and repeat the process: 112 / 51

Let's proceed to step 5:
51 can be fit into 112 2 times, resulting in a remainder of 10.
The next digit of our result is 2. 
Result so far: 612.0
Deduct 102 from 112 and we're left with 10.
Append the next digit (1) from the dividend to 10 and continue with: 101 / 51

Going ahead to step 6:
If we divide 101 by 51, we get 1 and a remainder of 50.
Write down 1 as next digit of the result. 
Result so far: 6121.0
Subtract 51 from 101 to get 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

Moving on to step 7:
The number 51 fits into 500 9 times, leaving a remainder of 41.
Use 9 as the next digit of our solution. 
Result so far: 6121.9
The remainder is 41 after subtracting 459 from 500.
Since there are no more digits in the dividend, we add a zero to the remainder making it 410, and continue the process.

Let's proceed to step 8:
51 goes into 410 8 times with a remainder of 2.
Use 8 as the next digit of our solution. 
Result so far: 6121.98
Subtract 408 from 410 to 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.

Step 9:
The number 51 fits into 20 0 times, leaving a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 6121.98
The remainder is 20 after subtracting 0 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 10:
If we divide 200 by 51, we get 3 and a remainder of 47.
The number 3 becomes the next digit in our result. 
Result so far: 6121.9803
If we take 153 away from 200, we end up with 47.
Since there are no more digits in the dividend, we add a zero to the remainder making it 470, and continue the process.

Moving on to step 11:
When dividing 470 by 51, we get 9 with a remainder of 11.
Write down 9 as next digit of the result. 
Result so far: 6121.98039
If we subtract 459 from 470, 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.

On to step 12:
The number 51 fits into 110 2 times, leaving a remainder of 8.
The next digit of our result is 2. 
Result so far: 6121.980392
Subtracting 102 from 110 leaves us with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 13:
80 divided by 51 is 1 with a remainder of 29.
Put 1 as the next digit of the answer. 
Result so far: 6121.9803921
If we take 51 away from 80, we end up with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Step 14:
If we divide 290 by 51, we get 5 and a remainder of 35.
The number 5 becomes the next digit in our result. 
Result so far: 6121.98039215
Deduct 255 from 290 and we're left with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

The quotient of the division is 6121.98039215, and the remainder is 3.5e-08.