It is given that the two large Fibonacci numbers:
F 1 0 0 F 1 1 0 = = 3 5 4 2 2 4 8 4 8 1 7 9 2 6 1 9 1 5 0 7 5 4 3 5 6 6 7 7 6 2 5 8 8 5 4 8 4 4 7 3 8 1 0 5
What is the value of n such that the equation below is fulfilled?
1 + 2 + 3 + … + n = gcd ( F 1 0 0 , F 1 1 0 )
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Yes, the actual values of the large numbers are just a distraction!
All python :)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|
Credit for quad function goes to Organis here whose code I modified because I was to lazy to reuse mine. Inside it, I returned first positive value if there were two solutions. What I did is got gcd (cheap way) and solved equation (n n+1/2=gcdd which is equal to n^2+n-2 gcdd=0) this is why I did 'print quad(1,1,-2*gcdd)'
There's a very simple solution for this! What other fact have you not used?
Problem Loading...
Note Loading...
Set Loading...
-GCD from two fibonacci numbers is a fibonacci number too. source g c d ( F m , F n ) = F g c d ( m , n ) - where F n is n t h fibonacci number
-From the question above, m = 100, n = 110, so: g c d ( 1 0 0 , 1 1 0 ) = 1 0 F 1 0 = 5 5 g c d ( F 1 0 0 , F 1 1 0 ) = 5 5 1 + 2 + 3 + . . . + n = 5 5 2 n × ( n + 1 ) = 5 5 n = 1 0
sorry for bad formatting