An N-number is a unique registration assigned by the Federal Aviation Administration (FAA) to every civil aircraft operating in the United States. Think of it as the aviation equivalent of a license plate. N-Numbers consist of a series of alphanumeric characters. U.S. registration numbers may not exceed five characters in addition to the standard U.S. registration prefix letter N. These characters may be:
  • One to five numbers (e.g. N12345)
  • One to four numbers followed by one letter (e.g. N1234Z)
  • One to three numbers followed by two letters (e.g. N123AZ)
In addition there are the following restrictions:
  1. The first character must be a number 1 through 9 (e.g. N012C is invalid)
  2. The number cannot contain the letters 'O' or 'I' to avoid confusion with numbers '0' and '1' (e.g. N45O is invalid)
Given an N-number, return true if it is valid and false if it is not.

Solution Stats

4 Solutions

4 Solvers

Last Solution submitted on Sep 11, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers4

Suggested Problems

More from this Author4

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!