51485982 divided by 397 
The aim is to understand the frequency of 397 in 51485982.

On to step 1:
397 goes into 5 0 times with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Append the next digit (1) from the dividend to 5 and continue with: 51 / 397

Moving on to step 2:
397 goes into 51 0 times with a remainder of 51.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 51, we end up with 51.
Grab the next digit (4) from the dividend, add it to 51, then carry on: 514 / 397

On to step 3:
397 goes into 514 1 times with a remainder of 117.
The next digit of our result is 1. 
Result so far: 1.0
The remainder is 117 after subtracting 397 from 514.
Take the next digit (8) from the dividend and append it to 117, then repeat: 1178 / 397

Step 4:
When dividing 1178 by 397, we get 2 with a remainder of 384.
The number 2 becomes the next digit in our result. 
Result so far: 12.0
The remainder is 384 after subtracting 794 from 1178.
Bring next digit (5) of the dividend behind the 384 and repeat the process: 3845 / 397

Advancing to step 5:
397 can be fit into 3845 9 times, resulting in a remainder of 272.
Record the quotient 9 as the next digit in the result. 
Result so far: 129.0
Deduct 3573 from 3845 and we're left with 272.
Append the next digit (9) from the dividend to 272 and continue with: 2729 / 397

Moving on to step 6:
When dividing 2729 by 397, we get 6 with a remainder of 347.
Use 6 as the next digit of our solution. 
Result so far: 1296.0
If we take 2382 away from 2729, we end up with 347.
Grab the next digit (8) from the dividend, add it to 347, then carry on: 3478 / 397

On to step 7:
The number 397 fits into 3478 8 times, leaving a remainder of 302.
The number 8 becomes the next digit in our result. 
Result so far: 12968.0
If we subtract 3176 from 3478, we get 302.
Take the next digit (2) from the dividend and append it to 302, then repeat: 3022 / 397

Moving on to step 8:
397 goes into 3022 7 times with a remainder of 243.
The next digit of our result is 7. 
Result so far: 129687.0
The remainder is 243 after subtracting 2779 from 3022.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2430, and continue the process.

Moving on to step 9:
2430 divided by 397 is 6 with a remainder of 48.
Write down 6 as next digit of the result. 
Result so far: 129687.6
The remainder is 48 after subtracting 2382 from 2430.
Since there are no more digits in the dividend, we add a zero to the remainder making it 480, and continue the process.

Let's proceed to step 10:
480 divided by 397 is 1 with a remainder of 83.
The number 1 becomes the next digit in our result. 
Result so far: 129687.61
If we take 397 away from 480, we end up with 83.
Since there are no more digits in the dividend, we add a zero to the remainder making it 830, and continue the process.

Advancing to step 11:
The number 397 fits into 830 2 times, leaving a remainder of 36.
Put 2 as the next digit of the answer. 
Result so far: 129687.612
If we take 794 away from 830, 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.

On to step 12:
397 goes into 360 0 times with a remainder of 360.
The number 0 becomes the next digit in our result. 
Result so far: 129687.612
Deduct 0 from 360 and we're left with 360.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3600, and continue the process.

Going ahead to step 13:
If we divide 3600 by 397, we get 9 and a remainder of 27.
The next digit of our result is 9. 
Result so far: 129687.61209
Deduct 3573 from 3600 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.

Advancing to step 14:
270 divided by 397 is 0 with a remainder of 270.
Write down 0 as next digit of the result. 
Result so far: 129687.61209
The remainder is 270 after subtracting 0 from 270.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2700, and continue the process.

Step 15:
397 goes into 2700 6 times with a remainder of 318.
Write down 6 as next digit of the result. 
Result so far: 129687.6120906
If we take 2382 away from 2700, we end up with 318.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3180, and continue the process.

On to step 16:
397 goes into 3180 8 times with a remainder of 4.
Put 8 as the next digit of the answer. 
Result so far: 129687.61209068
Subtracting 3176 from 3180 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

The final outcome is 129687.61209068, with a leftover of 4e-09.