if you want that to be recursive for 2^n then make s[0] = 1 otherwise its
2^(n+1)
"kathy" <kathy@nospam.c om> wrote in message
news:057d01c36c d1$90d70080$a10 1280a@phx.gbl.. .[color=blue]
> if:
> 1. s[n]=2*S[n-1]
> 2. s[0]=2
> then:
> s[n]=?[/color]
Ok, I am being dumb today. Tomorrow I will be smart again.
"Jon Skeet" <skeet@pobox.co m> wrote in message
news:MPG.19b720 e9f2d68f1a98a3d 6@news.microsof t.com...[color=blue]
> GC <gcrasher76@yah oo.com> wrote:[color=green]
> > s[n]=2^(n+1)-1[/color]
>
> No it doesn't.
>
> s[0]=2
> s[1]=3
> s[2]=5
> s[3]=9
> s[4]=17
> s[5]=33
>
> Your sequence would go:
> s[0]=1 // Disagreement even on the axioms!
> s[1]=3
> s[2]=7
> s[3]=15
> s[4]=31
> s[5]=63
>
> --
> Jon Skeet - <skeet@pobox.co m>
> http://www.pobox.com/~skeet/
> If replying to the group, please do not mail me too[/color]
Comment