We're dividing 397796 by 51 
The aim is to understand the frequency of 51 in 397796.

Going ahead to step 1:
51 goes into 3 0 times with a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Fetch the next digit (9) from the dividend, attach it to 3 and continue: 39 / 51

Step 2:
If we divide 39 by 51, we get 0 and a remainder of 39.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 39 leaves us with 39.
Bring next digit (7) of the dividend behind the 39 and repeat the process: 397 / 51

Going ahead to step 3:
The number 51 fits into 397 7 times, leaving a remainder of 40.
The next digit of our result is 7. 
Result so far: 7.0
Deduct 357 from 397 and we're left with 40.
Grab the next digit (7) from the dividend, add it to 40, then carry on: 407 / 51

Going ahead to step 4:
If we divide 407 by 51, we get 7 and a remainder of 50.
Write down 7 as next digit of the result. 
Result so far: 77.0
The remainder is 50 after subtracting 357 from 407.
Fetch the next digit (9) from the dividend, attach it to 50 and continue: 509 / 51

Advancing to step 5:
509 divided by 51 is 9 with a remainder of 50.
Record the quotient 9 as the next digit in the result. 
Result so far: 779.0
Subtracting 459 from 509 leaves us with 50.
Bring next digit (6) of the dividend behind the 50 and repeat the process: 506 / 51

Advancing to step 6:
If we divide 506 by 51, we get 9 and a remainder of 47.
The number 9 becomes the next digit in our result. 
Result so far: 7799.0
If we subtract 459 from 506, we get 47.
Since there are no more digits in the dividend, we add a zero to the remainder making it 470, and continue the process.

Let's proceed to step 7:
51 can be fit into 470 9 times, resulting in a remainder of 11.
Use 9 as the next digit of our solution. 
Result so far: 7799.9
If we take 459 away from 470, we end up 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.

Moving on to step 8:
The number 51 fits into 110 2 times, leaving a remainder of 8.
Record the quotient 2 as the next digit in the result. 
Result so far: 7799.92
Deduct 102 from 110 and we're left 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.

On to step 9:
51 goes into 80 1 times with a remainder of 29.
Put 1 as the next digit of the answer. 
Result so far: 7799.921
If we subtract 51 from 80, we get 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Going ahead to step 10:
The number 51 fits into 290 5 times, leaving a remainder of 35.
Put 5 as the next digit of the answer. 
Result so far: 7799.9215
Subtract 255 from 290 to get 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Moving on to step 11:
350 divided by 51 is 6 with a remainder of 44.
Put 6 as the next digit of the answer. 
Result so far: 7799.92156
Subtract 306 from 350 to get 44.
Since there are no more digits in the dividend, we add a zero to the remainder making it 440, and continue the process.

Advancing to step 12:
When dividing 440 by 51, we get 8 with a remainder of 32.
Use 8 as the next digit of our solution. 
Result so far: 7799.921568
If we subtract 408 from 440, we get 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Going ahead to step 13:
When dividing 320 by 51, we get 6 with a remainder of 14.
Put 6 as the next digit of the answer. 
Result so far: 7799.9215686
The remainder is 14 after subtracting 306 from 320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

On to step 14:
140 divided by 51 is 2 with a remainder of 38.
Use 2 as the next digit of our solution. 
Result so far: 7799.92156862
The remainder is 38 after subtracting 102 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Our division results in 7799.92156862 with a remaining 3.8e-08.