The Ring of k-Regular Sequences