You have to be a resident of the state in which you file the petition at least for 90 days prior to the day when you filed that petition. Whether you are physically present in that state at the moment you drop the envelope containing N400 in the mail is irrelevant.
How to Become Naturalized.
Answered on Sep 14th, 2015 at 6:42 PM