Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Input format for sequence' topicStudent Support Forum > General > "Input format for sequence"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
yehuda ben-shimol
09/27/12 10:01am

1. Study the basic Mathematica syntax
()
[]
{}
[[ ]]

so, you mean that a(n-1) is a[n-1]

2. Mathematically, you need a stopping condition for a
say, a[0] need a specific value, otherwise you will recurse to minus infinity

so, for a[0] = 0, you can try
a[0] = 0;
a[n_] := 7*n - a[n - 1] - 8;
Table[a[n], {n, 0, 50}]



yehuda

URL: ,

Subject (listing for 'Input format for sequence')
Author Date Posted
Input format for sequence Shawn Harris 09/26/12 4:11pm
Re: Input format for sequence Bill Simpson 09/26/12 8:50pm
Re: Input format for sequence yehuda ben-s... 09/27/12 10:01am
Re: Re: Input format for sequence Shawn Harris 09/27/12 1:51pm
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic