What allows you to make friends and to keep them? Being a social person helps with making friends, surely. As does putting in the effort to be a good friend. But I'm sure we've all had the experience of wanting to become friends with someone, but yet it never really happens. Maybe there's never the time. Maybe you're too far apart, and I mean that literally.
This is something I've observed over time, as friends move around and as people's lives grow, evolve, and change: the total friendship between two people evolves as a function of distance.
This means that two people, given the inclination to become friends, will see their friendship improve and decay based on their physical distance from each other—how far they live from each other. I think this makes intuitive sense. Two people who live together obviously see each other more than two people who live a continent apart. Yet what is surprising is that this function is not linear.