Around here, finding the money for a 20% down payment is the biggest impediment to buying a house (it can be hard to scrape up $100K - $200K), so that's easier if you can pool your funds among friends, its easier to do. So that pretty much precludes a rental arrangement. I think it'd be hard to get a loan on a property if the down payment funds are coming from your friends -- and you're treating it as an investment property because you need their rent to afford the mortgage.
This kind of arrangement is typically structured as a Tenancy in Common: