N is your years of service: one month's wage per full year, six months to one year counts as one year, under six months counts as half a month. The wage is your average monthly wage over the 12 months before termination. '+1' is one extra month paid when the employer terminates without giving 30 days' advance written notice (or with one month's wage in lieu).
Nationwide (all cities)
The N formula (Article 47)
The 'N' part is set by Article 47 of the Labor Contract Law: economic compensation is paid at one month's wage for each full year of service; for a period of six months or more but less than one year, it is counted as one year; for less than six months, half a month's wage is paid. The 'month's wage' is the employee's average monthly wage over the twelve months preceding the termination or dissolution. If that monthly wage is more than three times the local average monthly wage published by the government for the previous year, it is capped at three times that average, and the years of service are capped at twelve.
The +1 part (Article 40)
The '+1' part comes from Article 40: where the employer terminates on any of the three listed grounds (e.g. the employee is unable to perform after medical treatment or re-training), the employer may terminate by giving 30 days' advance written notice or by paying one extra month's wage in lieu of notice. So 'N+1' applies specifically when the employer terminates without the 30-day notice.
Local variations
Shanghai caveat
Note the Shanghai caveat from A36: for foreign employees in Shanghai, these statutory amounts apply only if the employment contract provides for them (the 'follow the contract' rule); in most other regions the statutory formula applies directly.