Is Or 40 The Same As 1040, 1040NR based on residency tests, green card status, and treaty benefits.