Question: maple 11 and arrays tia sal2

Greetings All

When I run these commands

with(combinat, fibonacci);

modp(fibonacci(3)-1, 9)+1

 

I get the answer of 2

but when I run with these commands

the single digit modp doesn't work  Why is this?

 

> with(combinat, fibonacci):


> array([[k, fibonacci(k), modp(fibonacci(k)-1, 9)+1], k = 0 .. 4]);



0,0,9

1,1,10

2,1,10

3,2,11

4,3,12

 

PS:

The reason I chose arrays.....I will be plotting and I think it might be easier to plot and see data points when I finish.

 

tia sal2

Please Wait...