We're dividing 395037 by 3 
The aim is to understand the frequency of 3 in 395037.

On to step 1:
3 goes into 3 1 times with a remainder of 0.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Deduct 3 from 3 and we're left with 0.
Take the next digit (9) from the dividend and append it to 0, then repeat: 9 / 3

On to step 2:
When dividing 9 by 3, we get 3 with a remainder of 0.
The number 3 becomes the next digit in our result. 
Result so far: 13.0
The remainder is 0 after subtracting 9 from 9.
Append the next digit (5) from the dividend to 0 and continue with: 5 / 3

Step 3:
3 goes into 5 1 times with a remainder of 2.
Record the quotient 1 as the next digit in the result. 
Result so far: 131.0
If we subtract 3 from 5, we get 2.
Fetch the next digit (0) from the dividend, attach it to 2 and continue: 20 / 3

On to step 4:
If we divide 20 by 3, we get 6 and a remainder of 2.
Record the quotient 6 as the next digit in the result. 
Result so far: 1316.0
The remainder is 2 after subtracting 18 from 20.
Append the next digit (3) from the dividend to 2 and continue with: 23 / 3

Going ahead to step 5:
When dividing 23 by 3, we get 7 with a remainder of 2.
The number 7 becomes the next digit in our result. 
Result so far: 13167.0
The remainder is 2 after subtracting 21 from 23.
Take the next digit (7) from the dividend and append it to 2, then repeat: 27 / 3

Moving on to step 6:
3 can be fit into 27 9 times, resulting in a remainder of 0.
Record the quotient 9 as the next digit in the result. 
Result so far: 131679.0
Subtract 27 from 27 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 7:
If we divide 0 by 3, we get 0 and a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 131679.0
Deduct 0 from 0 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 8:
When dividing 0 by 3, we get 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 131679.0
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

After the division, we end up with 131679.0 and a remainder of 0.0.