Sequence *(ai)* of natural numbers is defined as follows:

   *ai = bi* (for *i <= k*)
   *ai = c1ai-1 + c2ai-2 + ... + ckai-k* (for *i > k*)

where *bj* and *cj* are given natural numbers for *1<=j<=k*. We have to 
compute *an* for given *n* 

We've been given:
*k* - number of elements of *(c)* and *(b)* (*1 <= k <= 10*)
*b1,...,bk* - *k* natural numbers and *c1,...,ck* - *k* natural numbers all 
are non-negative.
*n* - natural number

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/algogeeks/-/Nwqg3knJxbYJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to