27 Oct 2006 at 17:29 #1 Conrad11 Conrad11 Soldato Joined 12 Jun 2005 Posts 5,361 Hi there, I am rubbish at maths, does anyone know/can work out the formula for this sequence? 1,2,4,8,16,32,64,128,256....... i want to be able to get the nth term. Thanks. EDIT: Is there even a formula. Last edited: 27 Oct 2006
Hi there, I am rubbish at maths, does anyone know/can work out the formula for this sequence? 1,2,4,8,16,32,64,128,256....... i want to be able to get the nth term. Thanks. EDIT: Is there even a formula.
27 Oct 2006 at 17:42 #4 Conrad11 Conrad11 Soldato OP Joined 12 Jun 2005 Posts 5,361 Ex-RoNiN said: for (x==1; x<n; x++) { x=x*2; printf(x); } Click to expand... Could you please explain what is going on there?
Ex-RoNiN said: for (x==1; x<n; x++) { x=x*2; printf(x); } Click to expand... Could you please explain what is going on there?
27 Oct 2006 at 17:52 #8 Conrad11 Conrad11 Soldato OP Joined 12 Jun 2005 Posts 5,361 Thanks for all the replies. This formula worked fine: 2^(n-1) Thanks again to everyone.