40789491 divided by 124 
The aim is to understand the frequency of 124 in 40789491.

On to step 1:
4 divided by 124 is 0 with a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 124

Advancing to step 2:
If we divide 40 by 124, we get 0 and a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Bring next digit (7) of the dividend behind the 40 and repeat the process: 407 / 124

Moving on to step 3:
The number 124 fits into 407 3 times, leaving a remainder of 35.
Put 3 as the next digit of the answer. 
Result so far: 3.0
If we subtract 372 from 407, we get 35.
Take the next digit (8) from the dividend and append it to 35, then repeat: 358 / 124

On to step 4:
124 goes into 358 2 times with a remainder of 110.
Put 2 as the next digit of the answer. 
Result so far: 32.0
Subtract 248 from 358 to get 110.
Fetch the next digit (9) from the dividend, attach it to 110 and continue: 1109 / 124

Step 5:
124 can be fit into 1109 8 times, resulting in a remainder of 117.
Use 8 as the next digit of our solution. 
Result so far: 328.0
Deduct 992 from 1109 and we're left with 117.
Fetch the next digit (4) from the dividend, attach it to 117 and continue: 1174 / 124

Let's proceed to step 6:
124 can be fit into 1174 9 times, resulting in a remainder of 58.
The number 9 becomes the next digit in our result. 
Result so far: 3289.0
If we subtract 1116 from 1174, we get 58.
Include the next digit (9) from the dividend after 58, then repeat: 589 / 124

Going ahead to step 7:
The number 124 fits into 589 4 times, leaving a remainder of 93.
Use 4 as the next digit of our solution. 
Result so far: 32894.0
Deduct 496 from 589 and we're left with 93.
Grab the next digit (1) from the dividend, add it to 93, then carry on: 931 / 124

Moving on to step 8:
124 can be fit into 931 7 times, resulting in a remainder of 63.
Put 7 as the next digit of the answer. 
Result so far: 328947.0
Deduct 868 from 931 and we're left with 63.
Since there are no more digits in the dividend, we add a zero to the remainder making it 630, and continue the process.

Moving on to step 9:
If we divide 630 by 124, we get 5 and a remainder of 10.
Use 5 as the next digit of our solution. 
Result so far: 328947.5
Subtract 620 from 630 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 10:
If we divide 100 by 124, we get 0 and a remainder of 100.
Use 0 as the next digit of our solution. 
Result so far: 328947.5
Subtract 0 from 100 to get 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1000, and continue the process.

Moving on to step 11:
124 can be fit into 1000 8 times, resulting in a remainder of 8.
Record the quotient 8 as the next digit in the result. 
Result so far: 328947.508
If we take 992 away from 1000, we end up 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.

Advancing to step 12:
The number 124 fits into 80 0 times, leaving a remainder of 80.
Use 0 as the next digit of our solution. 
Result so far: 328947.508
Deduct 0 from 80 and we're left with 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 800, and continue the process.

Let's proceed to step 13:
When dividing 800 by 124, we get 6 with a remainder of 56.
Record the quotient 6 as the next digit in the result. 
Result so far: 328947.50806
If we subtract 744 from 800, we get 56.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

Moving on to step 14:
124 can be fit into 560 4 times, resulting in a remainder of 64.
Put 4 as the next digit of the answer. 
Result so far: 328947.508064
Deduct 496 from 560 and we're left with 64.
Since there are no more digits in the dividend, we add a zero to the remainder making it 640, and continue the process.

Step 15:
If we divide 640 by 124, we get 5 and a remainder of 20.
The next digit of our result is 5. 
Result so far: 328947.5080645
The remainder is 20 after subtracting 620 from 640.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 16:
When dividing 200 by 124, we get 1 with a remainder of 76.
The number 1 becomes the next digit in our result. 
Result so far: 328947.50806451
Subtract 124 from 200 to get 76.
Since there are no more digits in the dividend, we add a zero to the remainder making it 760, and continue the process.

After the division, we end up with 328947.50806451 and a remainder of 7.6e-08.