We divide 512738 by 42
The aim is to understand the frequency of 42 in 512738.

On to step 1:
When dividing 5 by 42, we get 0 with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Fetch the next digit (1) from the dividend, attach it to 5 and continue: 51 / 42

Going ahead to step 2:
The number 42 fits into 51 1 times, leaving a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Deduct 42 from 51 and we're left with 9.
Append the next digit (2) from the dividend to 9 and continue with: 92 / 42

Moving on to step 3:
The number 42 fits into 92 2 times, leaving a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 12.0
If we take 84 away from 92, we end up with 8.
Fetch the next digit (7) from the dividend, attach it to 8 and continue: 87 / 42

Advancing to step 4:
When dividing 87 by 42, we get 2 with a remainder of 3.
Record the quotient 2 as the next digit in the result. 
Result so far: 122.0
If we take 84 away from 87, we end up with 3.
Grab the next digit (3) from the dividend, add it to 3, then carry on: 33 / 42

Advancing to step 5:
When dividing 33 by 42, we get 0 with a remainder of 33.
Put 0 as the next digit of the answer. 
Result so far: 1220.0
If we subtract 0 from 33, we get 33.
Fetch the next digit (8) from the dividend, attach it to 33 and continue: 338 / 42

Let's proceed to step 6:
338 divided by 42 is 8 with a remainder of 2.
Write down 8 as next digit of the result. 
Result so far: 12208.0
Subtract 336 from 338 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 7:
42 can be fit into 20 0 times, resulting in a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 12208.0
If we take 0 away from 20, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 8:
The number 42 fits into 200 4 times, leaving a remainder of 32.
Put 4 as the next digit of the answer. 
Result so far: 12208.04
If we subtract 168 from 200, we get 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Step 9:
When dividing 320 by 42, we get 7 with a remainder of 26.
Put 7 as the next digit of the answer. 
Result so far: 12208.047
Deduct 294 from 320 and we're left with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Advancing to step 10:
42 goes into 260 6 times with a remainder of 8.
Use 6 as the next digit of our solution. 
Result so far: 12208.0476
Subtracting 252 from 260 leaves us 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.

On to step 11:
When dividing 80 by 42, we get 1 with a remainder of 38.
The number 1 becomes the next digit in our result. 
Result so far: 12208.04761
Deduct 42 from 80 and we're left with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Step 12:
42 can be fit into 380 9 times, resulting in a remainder of 2.
Write down 9 as next digit of the result. 
Result so far: 12208.047619
If we take 378 away from 380, we end up with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 13:
If we divide 20 by 42, we get 0 and a remainder of 20.
The next digit of our result is 0. 
Result so far: 12208.047619
Subtract 0 from 20 to get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Step 14:
200 divided by 42 is 4 with a remainder of 32.
Use 4 as the next digit of our solution. 
Result so far: 12208.04761904
Deduct 168 from 200 and we're left with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Our division results in 12208.04761904 with a remaining 3.2e-08.