http://code.google.com/codejam/contest/dashboard?c=32016#s=a&a=2

2010/5/19 Adrian <kri...@gmail.com>

>
> The only solution I can think of is to use the binomial theorem
> (http://en.wikipedia.org/wiki/Binomial_theorem) to expand
> (3+sqrt(5))^n . Then you only need to take into the account the terms
> where y (sqrt(5)) has an odd power because all others are integers and
> won't affect the decimals. Then after adding them up you'll end up
> with something like n * sqrt(5) where n is the total of the
> coeficients of sqrt(5) and then just do the math and find out the 3
> decimals.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algoge...@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
>


-- 
Mario Ynocente Castro
Undergraduate Student of System Engineering
National University of Engineering, Peru

http://sites.google.com/site/ycmario

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algoge...@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to