Question: including if-command in sequence

Hello!

I'm doing my first steps on Maple and tried to fight my problem, but was not able to map out a solution. So please help! Thanks!

I want to include an if-command in a sequence. Unfortunately my code seems to be incorrect. Error message: invalid sequence

Please have a look at the attached file.

 

<a href='http://mapleoracles.maplesoft.com:8080/maplenet/primes/worksheet/10690_problem sequence.mw'>View 10690_problem sequence.mw on MapleNet</a> or <a href='http://www.mapleprimes.com/files/10690_problem sequence.mw'>Download 10690_problem sequence.mw</a><br/><a href='http://www.mapleprimes.com/viewfile/3391'>View file details</a>

Please Wait...