Question: Creating Recurision in maple 11 tia sal2

Greetings all I know I can get the odd numbers and even numbers using the following command

oddnum := seq(2*j+1, j = 0 .. 13);

1,3,5,7,9,.....

evennum := seq(2*j, j = 0 .. 13);

0,2,4,6,8,......

 

But I would like to get a sequency like this

0,1,4,5,8,9  where it does two numbers in sequency then skips the next two

and

2,3,6,7,10,11 where it starts at two the three then skips two numbers

I know it's a recursion but I'm not sure how to change it?

Can anyone recommend a simple online book or online video

tia sal2


Please Wait...