Preface: For images with r and x, r=k and x=n
Recently, I have started looking closer at Pascal's Triangle (because it's fascinating) and I wanted to try to make a general form for the function of each diagonal. Essentially, the diagonals are represented by k, where k=1 refers to the first diagonal which is only filled with ones, k=2 is the second diagonal which is filled with the natural numbers.
The first diagonal would be k=1, where the function would be n. Then, k=2 would give us (n^2)/2 + Cn . I used integration to give me k=2 because k=1 is the rate of change of k=2, so integration k=1 should yield k=2. However, when integrating k=1, the integral should not have an n multiplied by the integration constant, it should be a lone +C. This I am confused on.
I learned that integration works even less as k increases, as shown here where I try to integrate k=2. The function is slightly inaccurate and also requires a random bonus n to be attached to the integration constant. Why doesn't integrating work?
I have recognized that the lowest order term has a pattern to it. This leads me to believe there is an answer, I'm just not sure how to reach it.
My goal is to be able to determine the function of the nth term at a certain value of k, which I decided to label a.
Edit: Fixed x->n and r->k
Edit: Here is an image that can help clarify the process I am going through and how I used integration.
Thanks.