R – how to define a "symbolic sequence"

Let’s say that we have this sequence of numbers: 1/2, 1/3, 1/4, …, 1/N Sorry for the bad formatting, but the LaTeX doesn’t work here. Let’s say that we define a function which sums all the elements of this sequence: Σ n = 1N 1/n The N is supposed to be in the superscipt, but… Read More R – how to define a "symbolic sequence"