Tests to reach the single defective gadget
A batch of gadgets contains exactly defective unit. They are tested one at a time in a uniformly random order until the defective one is found.
On average, how many tests does it take to reach the defective gadget (including that test)?