adding algorithm for generic first n number of generic Fibonacci series