What would be the correct input in the wolfram website to give u(n) for a given n, where u is a sequence ?
Something like:
evaluate [u(n+1)=27*u(n)-14, u(0) = 1] at n = 3
What would be the correct input in the wolfram website to give u(n) for a given n, where u is a sequence ?
Something like:
evaluate [u(n+1)=27*u(n)-14, u(0) = 1] at n = 3
The comments already discussed how you can manipulate the recurrence. - But if you are not satisfied with that, why not use the Mathematica cloud interpreter in the wolfram lab?
$1.$
$2.$
$3.$
What if "Open code" is not available?
However, if you can't directly open the code of your wolfram query, you can go and open a new notebook and paste that code there.
You navigate to programming lab and click "Start programming now". Then click File and New notebook.
Click on (+) sign and select "Wolfram language input". Now type in the code from the lab:
Modify the
{n, 4, 6}part to list the terms you want, and the{a[0] == 1, a[1 + n] == -14 + 27 a[n]}part to setup your recurrence.Then either click the gear icon on the right and select "Evaluate", or press Shift+Enter.
You'll get your output:
Bonus points, if you want to quickly change the starting condition, you can make a table:
A code snippet to help with your example
You can use the following code:
To instantly generate a table for all values you need: