ooops, you're right of course, N is the inverse of the f-number.
Anyway, I still seem to misunderstand something. I found this 'derivation' of the equation, here:
http://www.inyourfacefotos.com/fstop.htm , although I quite don't understand some of the steps there (even if it's elementary school algebra).
Well, first of all, according to the first picture and the equations, the intensity of light at the image is proportional to f^2 (not inversely proportional). The equations are OK, so there must be something wrong with the picture, but I can't figure out what it is.
Then I don't understand how they got the second equation in the section "aperture stops" (I_i = ...). It just doesn't make any sense to me.
When I tried to derive it myself according to the second picture, I started with I_i = I_0 \frac{A_a}{A_i} from which I obtained I_i = I_0 \frac{f^2}{x_i^2}, which is probably not true.
I feel really stupid for not understanding such an elementary thing, but I'm probably missing something essential.