Question related recursive

7 views
Skip to first unread message

sachithanandam karthikselvan

unread,
Jul 30, 2010, 7:42:41 PM7/30/10
to nextgen_engg
Hi,

Most of you never use recursive algorithms, after your college days.
Here is the question related to recursive to brush up your knowledge.

Here is the sequence
0,1,4,25,676,458329,210066388900,44127887745906175987801,.....

Write the recursive procedure (pseduo code is enough) for the above
sequence. E.g. seq(1) = 0 , seq(2) = 1, etc.

All the best.

Satish Eerpini

unread,
Jul 30, 2010, 7:47:21 PM7/30/10
to nextge...@googlegroups.com

seq(1)=0 , seq(n)=(seq(n-1)+1)^2

Reply all
Reply to author
Forward
0 new messages