Hi, I'm trying to compute the total number of possible JPEG's that could be created.

JPEGs can be anywhere from 1x1 to 65535x65535 pixels and each pixel has 8bit color x three color channels. This means there is 256x256x256=16777216 possibilities for each pixel.

I'm an amateur at mathematics, but so far what I have come up with is:

(256^3)^(sum_(x=0)^65535(x+sum_(y=0)^65535y))

I figured I had to sum the maximum width of the jpeg (65535) added to the summation of the maximum height (also 65535) to get the total number of possible sizes. Then I would have to use that total (the total amount of possible pixel spaces) as an exponent on the number of possible colors right?

Any help would be greatly appreciated (in solving the equation, verifying it, or correcting it)!

Thanks!

-John G. Hampton