1. Buy house
2. Rent out rooms
3. Deduct all expenses that you'd have to pay anyway, utilities, internet, etc. as "business expenses".
4. Depreciate house
5. Renovate the house and depreciate the new fixtures/additions/etc.
6. Reappraise the house after a certain time and refinance.
7. Take money out after refinancing and buy more property.
Go back to (1).
It's pretty much foolproof. The tough part is being an owner-occupied landlord for a bit to get to the point where (6) is worth while. You also have to be in a hot market.