Yes, I know I'm a nitwit. Let's get that out of the way.

I'm trying to code a program that calculates the arithmetic, geometric, and harmonic means of numbers.

Thing is, I can't figure the harmonic mean out. I've got the arithmetic and geometric parts worked out, but the harmonic is giving me trouble.

Any ideas? Any at all? :(