We're dividing 4789956 by 254 
The aim is to understand the frequency of 254 in 4789956.

On to step 1:
4 divided by 254 is 0 with a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Append the next digit (7) from the dividend to 4 and continue with: 47 / 254

Going ahead to step 2:
If we divide 47 by 254, we get 0 and a remainder of 47.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 47, we end up with 47.
Bring next digit (8) of the dividend behind the 47 and repeat the process: 478 / 254

Moving on to step 3:
If we divide 478 by 254, we get 1 and a remainder of 224.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we take 254 away from 478, we end up with 224.
Include the next digit (9) from the dividend after 224, then repeat: 2249 / 254

Step 4:
If we divide 2249 by 254, we get 8 and a remainder of 217.
Put 8 as the next digit of the answer. 
Result so far: 18.0
Subtract 2032 from 2249 to get 217.
Include the next digit (9) from the dividend after 217, then repeat: 2179 / 254

Going ahead to step 5:
When dividing 2179 by 254, we get 8 with a remainder of 147.
Write down 8 as next digit of the result. 
Result so far: 188.0
If we subtract 2032 from 2179, we get 147.
Grab the next digit (5) from the dividend, add it to 147, then carry on: 1475 / 254

On to step 6:
The number 254 fits into 1475 5 times, leaving a remainder of 205.
The next digit of our result is 5. 
Result so far: 1885.0
Deduct 1270 from 1475 and we're left with 205.
Bring next digit (6) of the dividend behind the 205 and repeat the process: 2056 / 254

Advancing to step 7:
254 goes into 2056 8 times with a remainder of 24.
Write down 8 as next digit of the result. 
Result so far: 18858.0
Subtract 2032 from 2056 to get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Going ahead to step 8:
The number 254 fits into 240 0 times, leaving a remainder of 240.
The next digit of our result is 0. 
Result so far: 18858.0
If we subtract 0 from 240, we get 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2400, and continue the process.

On to step 9:
If we divide 2400 by 254, we get 9 and a remainder of 114.
The next digit of our result is 9. 
Result so far: 18858.09
If we take 2286 away from 2400, we end up with 114.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1140, and continue the process.

Going ahead to step 10:
When dividing 1140 by 254, we get 4 with a remainder of 124.
The number 4 becomes the next digit in our result. 
Result so far: 18858.094
Subtracting 1016 from 1140 leaves us with 124.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1240, and continue the process.

On to step 11:
The number 254 fits into 1240 4 times, leaving a remainder of 224.
Record the quotient 4 as the next digit in the result. 
Result so far: 18858.0944
The remainder is 224 after subtracting 1016 from 1240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2240, and continue the process.

The quotient of the division is 18858.0944, and the remainder is 0.00224.