Let's divide 40334 by 34
The aim is to understand the frequency of 34 in 40334.

Advancing to step 1:
If we divide 4 by 34, we get 0 and a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 34

Advancing to step 2:
The number 34 fits into 40 1 times, leaving a remainder of 6.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we subtract 34 from 40, we get 6.
Bring next digit (3) of the dividend behind the 6 and repeat the process: 63 / 34

Going ahead to step 3:
63 divided by 34 is 1 with a remainder of 29.
Use 1 as the next digit of our solution. 
Result so far: 11.0
Subtract 34 from 63 to get 29.
Take the next digit (3) from the dividend and append it to 29, then repeat: 293 / 34

Going ahead to step 4:
34 can be fit into 293 8 times, resulting in a remainder of 21.
Write down 8 as next digit of the result. 
Result so far: 118.0
If we take 272 away from 293, we end up with 21.
Grab the next digit (4) from the dividend, add it to 21, then carry on: 214 / 34

Moving on to step 5:
34 goes into 214 6 times with a remainder of 10.
Write down 6 as next digit of the result. 
Result so far: 1186.0
Subtract 204 from 214 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 6:
34 goes into 100 2 times with a remainder of 32.
The number 2 becomes the next digit in our result. 
Result so far: 1186.2
If we take 68 away from 100, we end up 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.

Advancing to step 7:
34 can be fit into 320 9 times, resulting in a remainder of 14.
Use 9 as the next digit of our solution. 
Result so far: 1186.29
Subtracting 306 from 320 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Going ahead to step 8:
34 goes into 140 4 times with a remainder of 4.
The next digit of our result is 4. 
Result so far: 1186.294
Subtracting 136 from 140 leaves us 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.

Moving on to step 9:
If we divide 40 by 34, we get 1 and a remainder of 6.
The number 1 becomes the next digit in our result. 
Result so far: 1186.2941
If we subtract 34 from 40, 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.

Step 10:
60 divided by 34 is 1 with a remainder of 26.
The next digit of our result is 1. 
Result so far: 1186.29411
Deduct 34 from 60 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.

Our division results in 1186.29411 with a remaining 2.6e-05.