We look at the division of 31954857 by 794 
The aim is to understand the frequency of 794 in 31954857.

Going ahead to step 1:
3 divided by 794 is 0 with a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 794

On to step 2:
794 goes into 31 0 times 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.
Append the next digit (9) from the dividend to 31 and continue with: 319 / 794

Going ahead to step 3:
The number 794 fits into 319 0 times, leaving a remainder of 319.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 319, we get 319.
Take the next digit (5) from the dividend and append it to 319, then repeat: 3195 / 794

Let's proceed to step 4:
3195 divided by 794 is 4 with a remainder of 19.
Use 4 as the next digit of our solution. 
Result so far: 4.0
The remainder is 19 after subtracting 3176 from 3195.
Take the next digit (4) from the dividend and append it to 19, then repeat: 194 / 794

Moving on to step 5:
If we divide 194 by 794, we get 0 and a remainder of 194.
The next digit of our result is 0. 
Result so far: 40.0
Deduct 0 from 194 and we're left with 194.
Bring next digit (8) of the dividend behind the 194 and repeat the process: 1948 / 794

On to step 6:
The number 794 fits into 1948 2 times, leaving a remainder of 360.
Record the quotient 2 as the next digit in the result. 
Result so far: 402.0
Subtract 1588 from 1948 to get 360.
Bring next digit (5) of the dividend behind the 360 and repeat the process: 3605 / 794

Advancing to step 7:
794 can be fit into 3605 4 times, resulting in a remainder of 429.
Put 4 as the next digit of the answer. 
Result so far: 4024.0
The remainder is 429 after subtracting 3176 from 3605.
Include the next digit (7) from the dividend after 429, then repeat: 4297 / 794

On to step 8:
When dividing 4297 by 794, we get 5 with a remainder of 327.
The number 5 becomes the next digit in our result. 
Result so far: 40245.0
If we take 3970 away from 4297, we end up with 327.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3270, and continue the process.

Advancing to step 9:
3270 divided by 794 is 4 with a remainder of 94.
The number 4 becomes the next digit in our result. 
Result so far: 40245.4
If we subtract 3176 from 3270, we get 94.
Since there are no more digits in the dividend, we add a zero to the remainder making it 940, and continue the process.

Let's proceed to step 10:
794 can be fit into 940 1 times, resulting in a remainder of 146.
Write down 1 as next digit of the result. 
Result so far: 40245.41
Subtracting 794 from 940 leaves us with 146.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1460, and continue the process.

Going ahead to step 11:
If we divide 1460 by 794, we get 1 and a remainder of 666.
Write down 1 as next digit of the result. 
Result so far: 40245.411
Deduct 794 from 1460 and we're left with 666.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6660, and continue the process.

The quotient of the division is 40245.411, and the remainder is 0.0666.