Sorry, an error occurred while loading the content.

Re: Fast power compute

Expand Messages
• Hi PETER You have solved my problem. Thank you VERY VERY VERY much. Regards Giovanni *********************** *********************** ***********************
Message 1 of 4 , Nov 21, 2010
Hi PETER
You have solved my problem.
Thank you VERY VERY VERY much.
Regards
Giovanni

***********************
***********************
***********************
***********************
***********************

--- In primenumbers@yahoogroups.com, Peter Kosinar <goober@...> wrote:
>
> Hi Giovanni,
>
> > In other words:
> >
> > I have 4 (or 5 or 200 or other quantity) group of 1011 (binary).
> > How great is ITS value, without perform any string manipulation or repeated
> > multiplication o addition.
> > This is only an example. I would generalize this problem.
>
> If I understood your question correctly, you're looking for the sum
> of a geometric progression [*]. If that is the case, it's quite simple:
> sum = 11*(16^4 - 1)/(16 - 1) = 48059. The general expression is also
> pretty simple. Or did I miss your actual question?
>
> Peter
>
> [*] http://en.wikipedia.org/wiki/Geometric_progression
>
Your message has been successfully submitted and would be delivered to recipients shortly.