Let's divide 313945 by 42
We want to figure out the number of times 313945 can be divided by 42.

Going ahead to step 1:
If we divide 3 by 42, we get 0 and a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 42

Let's proceed to step 2:
31 divided by 42 is 0 with a remainder of 31.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 31 and we're left with 31.
Include the next digit (3) from the dividend after 31, then repeat: 313 / 42

On to step 3:
When dividing 313 by 42, we get 7 with a remainder of 19.
Record the quotient 7 as the next digit in the result. 
Result so far: 7.0
Subtracting 294 from 313 leaves us with 19.
Include the next digit (9) from the dividend after 19, then repeat: 199 / 42

Step 4:
42 can be fit into 199 4 times, resulting in a remainder of 31.
The number 4 becomes the next digit in our result. 
Result so far: 74.0
Deduct 168 from 199 and we're left with 31.
Append the next digit (4) from the dividend to 31 and continue with: 314 / 42

On to step 5:
42 can be fit into 314 7 times, resulting in a remainder of 20.
The number 7 becomes the next digit in our result. 
Result so far: 747.0
Deduct 294 from 314 and we're left with 20.
Append the next digit (5) from the dividend to 20 and continue with: 205 / 42

Moving on to step 6:
42 can be fit into 205 4 times, resulting in a remainder of 37.
Use 4 as the next digit of our solution. 
Result so far: 7474.0
If we subtract 168 from 205, we get 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Let's proceed to step 7:
If we divide 370 by 42, we get 8 and a remainder of 34.
Record the quotient 8 as the next digit in the result. 
Result so far: 7474.8
Subtracting 336 from 370 leaves us with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Step 8:
When dividing 340 by 42, we get 8 with a remainder of 4.
Write down 8 as next digit of the result. 
Result so far: 7474.88
Deduct 336 from 340 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Our division results in 7474.88 with a remaining 0.004.