Let's divide 152182 by 40
The aim is to understand the frequency of 40 in 152182.

Let's proceed to step 1:
The number 40 fits into 1 0 times, leaving a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Take the next digit (5) from the dividend and append it to 1, then repeat: 15 / 40

Let's proceed to step 2:
40 can be fit into 15 0 times, resulting in a remainder of 15.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 15 leaves us with 15.
Bring next digit (2) of the dividend behind the 15 and repeat the process: 152 / 40

Moving on to step 3:
40 can be fit into 152 3 times, resulting in a remainder of 32.
Put 3 as the next digit of the answer. 
Result so far: 3.0
If we subtract 120 from 152, we get 32.
Grab the next digit (1) from the dividend, add it to 32, then carry on: 321 / 40

On to step 4:
321 divided by 40 is 8 with a remainder of 1.
Use 8 as the next digit of our solution. 
Result so far: 38.0
If we subtract 320 from 321, we get 1.
Grab the next digit (8) from the dividend, add it to 1, then carry on: 18 / 40

Let's proceed to step 5:
If we divide 18 by 40, we get 0 and a remainder of 18.
The next digit of our result is 0. 
Result so far: 380.0
If we subtract 0 from 18, we get 18.
Fetch the next digit (2) from the dividend, attach it to 18 and continue: 182 / 40

Advancing to step 6:
The number 40 fits into 182 4 times, leaving a remainder of 22.
Put 4 as the next digit of the answer. 
Result so far: 3804.0
Deduct 160 from 182 and we're left with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

On to step 7:
40 can be fit into 220 5 times, resulting in a remainder of 20.
The next digit of our result is 5. 
Result so far: 3804.5
The remainder is 20 after subtracting 200 from 220.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 8:
When dividing 200 by 40, we get 5 with a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 3804.55
The remainder is 0 after subtracting 200 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Our division results in 3804.55 with a remaining 0.0.