Let's divide 24087842 by 123
The aim is to understand the frequency of 123 in 24087842.

Let's proceed to step 1:
The number 123 fits into 2 0 times, leaving a remainder of 2.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 2, we end up with 2.
Bring next digit (4) of the dividend behind the 2 and repeat the process: 24 / 123

Advancing to step 2:
24 divided by 123 is 0 with a remainder of 24.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 24, we get 24.
Take the next digit (0) from the dividend and append it to 24, then repeat: 240 / 123

Step 3:
When dividing 240 by 123, we get 1 with a remainder of 117.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtracting 123 from 240 leaves us with 117.
Include the next digit (8) from the dividend after 117, then repeat: 1178 / 123

Let's proceed to step 4:
When dividing 1178 by 123, we get 9 with a remainder of 71.
Write down 9 as next digit of the result. 
Result so far: 19.0
Subtract 1107 from 1178 to get 71.
Bring next digit (7) of the dividend behind the 71 and repeat the process: 717 / 123

Advancing to step 5:
The number 123 fits into 717 5 times, leaving a remainder of 102.
Put 5 as the next digit of the answer. 
Result so far: 195.0
If we take 615 away from 717, we end up with 102.
Fetch the next digit (8) from the dividend, attach it to 102 and continue: 1028 / 123

On to step 6:
1028 divided by 123 is 8 with a remainder of 44.
The number 8 becomes the next digit in our result. 
Result so far: 1958.0
If we take 984 away from 1028, we end up with 44.
Include the next digit (4) from the dividend after 44, then repeat: 444 / 123

Step 7:
444 divided by 123 is 3 with a remainder of 75.
Put 3 as the next digit of the answer. 
Result so far: 19583.0
If we subtract 369 from 444, we get 75.
Fetch the next digit (2) from the dividend, attach it to 75 and continue: 752 / 123

Let's proceed to step 8:
When dividing 752 by 123, we get 6 with a remainder of 14.
The number 6 becomes the next digit in our result. 
Result so far: 195836.0
The remainder is 14 after subtracting 738 from 752.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Moving on to step 9:
123 can be fit into 140 1 times, resulting in a remainder of 17.
Use 1 as the next digit of our solution. 
Result so far: 195836.1
The remainder is 17 after subtracting 123 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

On to step 10:
123 goes into 170 1 times with a remainder of 47.
The next digit of our result is 1. 
Result so far: 195836.11
If we take 123 away from 170, we end up with 47.
Since there are no more digits in the dividend, we add a zero to the remainder making it 470, and continue the process.

The quotient of the division is 195836.11, and the remainder is 0.047.