A sequence with a1=1 is defined by the recurrence relation an+1=2nan for all natural numbers n. If a23=2p, then what is n?
If I understood your question, then:
a=1;b=2^a;c=2^(a+1)*b;printc,", ",;a++;if(a<24, goto1, 0)
1, 2, 8 , 32 , 128 , 512 , 2048 , 8192 , 32768 , 131072 , 524288 , 2097152 , 8388608 , 33554432 , 134217728 , 536870912 , 2147483648 , 8589934592 , 3 4359738368 , 13 7438953472 , 54 9755813888 , 219 9023255552 , 8,796,093,022,208, which is the 23rd term = 2^43
Can you figure out the 2nd and the 3rd terms, then I will have a better understanding of it?
I think this is a trick question.
a23=a22+1son=22
p=23/2*22=253 though
I work it out with the help of an AP sum formula.