Let's divide 512313 by 42
The aim is to understand the frequency of 42 in 512313.

Advancing to step 1:
5 divided by 42 is 0 with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 5 and we're left 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
If we take 42 away from 51, we end up with 9.
Take the next digit (2) from the dividend and append it to 9, then repeat: 92 / 42

Going ahead to step 3:
92 divided by 42 is 2 with a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 12.0
Subtract 84 from 92 to get 8.
Include the next digit (3) from the dividend after 8, then repeat: 83 / 42

Step 4:
42 goes into 83 1 times with a remainder of 41.
The number 1 becomes the next digit in our result. 
Result so far: 121.0
The remainder is 41 after subtracting 42 from 83.
Include the next digit (1) from the dividend after 41, then repeat: 411 / 42

Moving on to step 5:
If we divide 411 by 42, we get 9 and a remainder of 33.
Record the quotient 9 as the next digit in the result. 
Result so far: 1219.0
Subtract 378 from 411 to get 33.
Take the next digit (3) from the dividend and append it to 33, then repeat: 333 / 42

Let's proceed to step 6:
When dividing 333 by 42, we get 7 with a remainder of 39.
Use 7 as the next digit of our solution. 
Result so far: 12197.0
If we subtract 294 from 333, we get 39.
Since there are no more digits in the dividend, we add a zero to the remainder making it 390, and continue the process.

Going ahead to step 7:
When dividing 390 by 42, we get 9 with a remainder of 12.
Write down 9 as next digit of the result. 
Result so far: 12197.9
Subtracting 378 from 390 leaves us with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Let's proceed to step 8:
The number 42 fits into 120 2 times, leaving a remainder of 36.
The next digit of our result is 2. 
Result so far: 12197.92
If we subtract 84 from 120, we 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.

On to step 9:
If we divide 360 by 42, we get 8 and a remainder of 24.
Record the quotient 8 as the next digit in the result. 
Result so far: 12197.928
Deduct 336 from 360 and we're left 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 10:
When dividing 240 by 42, we get 5 with a remainder of 30.
Use 5 as the next digit of our solution. 
Result so far: 12197.9285
Deduct 210 from 240 and we're left with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Moving on to step 11:
42 goes into 300 7 times with a remainder of 6.
Use 7 as the next digit of our solution. 
Result so far: 12197.92857
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.

Advancing to step 12:
If we divide 60 by 42, we get 1 and a remainder of 18.
Use 1 as the next digit of our solution. 
Result so far: 12197.928571
Deduct 42 from 60 and we're left 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 13:
42 goes into 180 4 times with a remainder of 12.
Write down 4 as next digit of the result. 
Result so far: 12197.9285714
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.

Let's proceed to step 14:
120 divided by 42 is 2 with a remainder of 36.
The number 2 becomes the next digit in our result. 
Result so far: 12197.92857142
The remainder is 36 after subtracting 84 from 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

The quotient of the division is 12197.92857142, and the remainder is 3.6e-08.