It's referred to as having 'minimum contact' with a state; it's not just for tax purposes, but would also matters for things like lawsuit jurisdiction and so forth. Here's a recent summary with good references that explains the basics: http://www.picpa.org/Content/41763.aspx