We're dividing 31798256 by 628 
The aim is to understand the frequency of 628 in 31798256.

Advancing to step 1:
The number 628 fits into 3 0 times, leaving a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Fetch the next digit (1) from the dividend, attach it to 3 and continue: 31 / 628

Step 2:
31 divided by 628 is 0 with a remainder of 31.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 31 after subtracting 0 from 31.
Take the next digit (7) from the dividend and append it to 31, then repeat: 317 / 628

On to step 3:
317 divided by 628 is 0 with a remainder of 317.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 317, we end up with 317.
Append the next digit (9) from the dividend to 317 and continue with: 3179 / 628

Moving on to step 4:
628 can be fit into 3179 5 times, resulting in a remainder of 39.
Record the quotient 5 as the next digit in the result. 
Result so far: 5.0
If we take 3140 away from 3179, we end up with 39.
Include the next digit (8) from the dividend after 39, then repeat: 398 / 628

On to step 5:
628 can be fit into 398 0 times, resulting in a remainder of 398.
Write down 0 as next digit of the result. 
Result so far: 50.0
If we subtract 0 from 398, we get 398.
Include the next digit (2) from the dividend after 398, then repeat: 3982 / 628

On to step 6:
The number 628 fits into 3982 6 times, leaving a remainder of 214.
Record the quotient 6 as the next digit in the result. 
Result so far: 506.0
Subtract 3768 from 3982 to get 214.
Take the next digit (5) from the dividend and append it to 214, then repeat: 2145 / 628

Going ahead to step 7:
The number 628 fits into 2145 3 times, leaving a remainder of 261.
Use 3 as the next digit of our solution. 
Result so far: 5063.0
Subtract 1884 from 2145 to get 261.
Take the next digit (6) from the dividend and append it to 261, then repeat: 2616 / 628

Step 8:
2616 divided by 628 is 4 with a remainder of 104.
Use 4 as the next digit of our solution. 
Result so far: 50634.0
The remainder is 104 after subtracting 2512 from 2616.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1040, and continue the process.

Step 9:
When dividing 1040 by 628, we get 1 with a remainder of 412.
Record the quotient 1 as the next digit in the result. 
Result so far: 50634.1
The remainder is 412 after subtracting 628 from 1040.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4120, and continue the process.

Let's proceed to step 10:
628 goes into 4120 6 times with a remainder of 352.
Put 6 as the next digit of the answer. 
Result so far: 50634.16
If we take 3768 away from 4120, we end up with 352.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3520, and continue the process.

Advancing to step 11:
628 goes into 3520 5 times with a remainder of 380.
The number 5 becomes the next digit in our result. 
Result so far: 50634.165
Subtracting 3140 from 3520 leaves us with 380.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3800, and continue the process.

On to step 12:
When dividing 3800 by 628, we get 6 with a remainder of 32.
Use 6 as the next digit of our solution. 
Result so far: 50634.1656
Deduct 3768 from 3800 and we're left with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Moving on to step 13:
When dividing 320 by 628, we get 0 with a remainder of 320.
Put 0 as the next digit of the answer. 
Result so far: 50634.1656
If we subtract 0 from 320, we get 320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3200, and continue the process.

On to step 14:
The number 628 fits into 3200 5 times, leaving a remainder of 60.
Write down 5 as next digit of the result. 
Result so far: 50634.165605
If we take 3140 away from 3200, we end up with 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 600, and continue the process.

Going ahead to step 15:
When dividing 600 by 628, we get 0 with a remainder of 600.
Write down 0 as next digit of the result. 
Result so far: 50634.165605
Subtracting 0 from 600 leaves us with 600.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6000, and continue the process.

Step 16:
6000 divided by 628 is 9 with a remainder of 348.
Record the quotient 9 as the next digit in the result. 
Result so far: 50634.16560509
If we take 5652 away from 6000, we end up with 348.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3480, and continue the process.

The final outcome is 50634.16560509, with a leftover of 3.48e-07.