We divide 40508 by 82
We're looking to find how many times 82 goes into 40508.

Step 1:
82 goes into 4 0 times with a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 82

On to step 2:
If we divide 40 by 82, we get 0 and a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 40 to get 40.
Fetch the next digit (5) from the dividend, attach it to 40 and continue: 405 / 82

On to step 3:
405 divided by 82 is 4 with a remainder of 77.
The next digit of our result is 4. 
Result so far: 4.0
If we take 328 away from 405, we end up with 77.
Grab the next digit (0) from the dividend, add it to 77, then carry on: 770 / 82

Let's proceed to step 4:
82 can be fit into 770 9 times, resulting in a remainder of 32.
The next digit of our result is 9. 
Result so far: 49.0
The remainder is 32 after subtracting 738 from 770.
Grab the next digit (8) from the dividend, add it to 32, then carry on: 328 / 82

Going ahead to step 5:
82 goes into 328 4 times with a remainder of 0.
Put 4 as the next digit of the answer. 
Result so far: 494.0
If we subtract 328 from 328, we 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.

Let's proceed to step 6:
82 can be fit into 0 0 times, resulting in a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 494.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.

On to step 7:
When dividing 0 by 82, we get 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 494.0
Subtract 0 from 0 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.

In conclusion, the division gives 494.0 with a balance of 0.0.