21178464 divided by 42 
The aim is to understand the frequency of 42 in 21178464.

Step 1:
2 divided by 42 is 0 with a remainder of 2.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 2 to get 2.
Grab the next digit (1) from the dividend, add it to 2, then carry on: 21 / 42

On to step 2:
21 divided by 42 is 0 with a remainder of 21.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 21 after subtracting 0 from 21.
Bring next digit (1) of the dividend behind the 21 and repeat the process: 211 / 42

Moving on to step 3:
If we divide 211 by 42, we get 5 and a remainder of 1.
Record the quotient 5 as the next digit in the result. 
Result so far: 5.0
Deduct 210 from 211 and we're left with 1.
Bring next digit (7) of the dividend behind the 1 and repeat the process: 17 / 42

Moving on to step 4:
42 can be fit into 17 0 times, resulting in a remainder of 17.
The number 0 becomes the next digit in our result. 
Result so far: 50.0
Subtract 0 from 17 to get 17.
Fetch the next digit (8) from the dividend, attach it to 17 and continue: 178 / 42

Moving on to step 5:
If we divide 178 by 42, we get 4 and a remainder of 10.
Put 4 as the next digit of the answer. 
Result so far: 504.0
Subtracting 168 from 178 leaves us with 10.
Take the next digit (4) from the dividend and append it to 10, then repeat: 104 / 42

Going ahead to step 6:
When dividing 104 by 42, we get 2 with a remainder of 20.
Use 2 as the next digit of our solution. 
Result so far: 5042.0
The remainder is 20 after subtracting 84 from 104.
Bring next digit (6) of the dividend behind the 20 and repeat the process: 206 / 42

On to step 7:
42 can be fit into 206 4 times, resulting in a remainder of 38.
Record the quotient 4 as the next digit in the result. 
Result so far: 50424.0
If we subtract 168 from 206, we get 38.
Fetch the next digit (4) from the dividend, attach it to 38 and continue: 384 / 42

Advancing to step 8:
42 goes into 384 9 times with a remainder of 6.
The next digit of our result is 9. 
Result so far: 504249.0
If we subtract 378 from 384, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Advancing to step 9:
42 can be fit into 60 1 times, resulting in a remainder of 18.
The next digit of our result is 1. 
Result so far: 504249.1
The remainder is 18 after subtracting 42 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Let's proceed to step 10:
If we divide 180 by 42, we get 4 and a remainder of 12.
Put 4 as the next digit of the answer. 
Result so far: 504249.14
If we subtract 168 from 180, we get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Moving on to step 11:
The number 42 fits into 120 2 times, leaving a remainder of 36.
The next digit of our result is 2. 
Result so far: 504249.142
Subtract 84 from 120 to get 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Let's proceed to step 12:
If we divide 360 by 42, we get 8 and a remainder of 24.
The next digit of our result is 8. 
Result so far: 504249.1428
If we take 336 away from 360, we end up with 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 13:
42 can be fit into 240 5 times, resulting in a remainder of 30.
The number 5 becomes the next digit in our result. 
Result so far: 504249.14285
If we subtract 210 from 240, we get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

On to step 14:
42 goes into 300 7 times with a remainder of 6.
Write down 7 as next digit of the result. 
Result so far: 504249.142857
The remainder is 6 after subtracting 294 from 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

On to step 15:
42 goes into 60 1 times with a remainder of 18.
The number 1 becomes the next digit in our result. 
Result so far: 504249.1428571
Subtracting 42 from 60 leaves us with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Advancing to step 16:
42 can be fit into 180 4 times, resulting in a remainder of 12.
Put 4 as the next digit of the answer. 
Result so far: 504249.14285714
The remainder is 12 after subtracting 168 from 180.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

The final result is 504249.14285714 with a remainder of 1.2e-08.