What is the formula of an imaginary compound containing a a nonmetal (Nm) with a charge of -1 (Nm-1) and a metal (M) with a charge of +4 (M+4)?

The formula of the imaginary compound containing a nonmetal with a charge of -1 and a metal with a charge of +4 would be M4Nm.