May someone tell me which one is the correct formula between the 2?

F= Mean Model Sum Square / Mean Residual Sum Square = MSM/MSR= (SSM/k-1) / (SSR/N-k)

or

F= (SSM/k)/(SSR/N-k-1)

from which

F= (R^2 /k-1) / ((1-R^2)/N-k )

or

F= (R^2/k) / ((1-R^2)/N-k-1)

where k is the numer of parameters to be estimated to compute the conditional mean

N is the sample size

Thank you so much!