Instead of asking what n-factor really was, a better question would have been what an equivalent was (But that would have been a duplicate)
According to the above question, the formal definition of an equivalent is as follows:
An equivalent (symbol: officially equiv; unofficially but often Eq) is the amount of a substance that reacts with (or is equivalent to) an arbitrary amount of another substance in a given chemical reaction.
In a more formal definition, the equivalent is the amount of a substance needed to do one of the following:
- react with or supply one mole of hydrogen ions ($\ce{H+}$) in an acid-base reaction.
- react with or supply one mole of electrons in a redox reaction.
Therefore given any chemical reaction, one equivalent of each reactant reacts to form one equivalent of each product, irrespective of the stoichiometric coefficients
$$\ce{aA + bB -> cC + dD}$$
In all such scenarios, the n-factor of the compound is defined as,
$$\textit{n}\text{-factor} = \frac{M_\mathrm{molar}}{M_\mathrm{equiv}}$$
However, why are there so many different definitions for calculating the same thing. This is because an equivalent doesn't have one fixed definition, rather depending upon the situation, the definition of an equivalent changes and hence the n-factor definition changes as well.
Therefore there is no formal definition per se for the n-factor, simply because it was never formally introduced. As M.Farooq pointed out in the comments,
I have only seen n-factor in South Asian textbooks. This is predominantly a South Asian college term for calculating chemical equivalents in current curricula. Here n stands for normality. You will not find this usage in British/US books. The n-factor is simply a coversion factor for molarity to normality concentration. Since the definition of an equivalent is dependent on the type of reaction we need to be aware of several scenarios which you have listed viz. acid-base, salts, redox reactions.