Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

Given the input and the output, how do you interpolate a function in Mathematica?

For example if you know that

$f(1)=\frac{1}{2}$, $f(2)=\frac{1}{3}$, $f(3)=\frac{1}{4}$,... how would you solve for $f(n)$

I guess what I am really asking is how would one solve a sequence in Mathematica?

share|improve this question

marked as duplicate by Mr.Wizard Aug 1 '14 at 0:56

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
See also: (11389), (24767), (38128) – Mr.Wizard Aug 1 '14 at 0:56
FindSequenceFunction[{1/2, 1/3, 1/4, 1/5, 1/6}, n]

1/(1 + n)

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.