The short form of number in English (No.) is often expressed in Portuguese as N?, N.? etc. It comes from the Portuguese word número, which can be interpreted as a number, a serial number, a product model, a number (door number, newspaper issue number, writing symbol for number, header number, etc.).
It is still the most formal and correct to use N? in formal situations.