public Mylist <int> GetNextLevel(Mylist <int> olddic) { Mylist <int> newlist = new Mylist <int>(); newlist.Add(0, 1); for (int i = 0; i < olddic.Count() - 1; i++) { newlist.Add(i + 1, olddic[i] + olddic[i + 1]); } newlist.Add(olddic.Count(), 1); return(newlist); }