How to interpret it? I can think of at least three ways:Given that Fk is the first Fibonacci number for which the first nine digits AND the last nine digits are 1-9 pandigital, find k.
1. Find k for which (isPandigital(First9Digits(Fib(k))) && isPandigital(Last9Digits(Fib(k)))) == true.
That's how I understood the problem at first. I'm unable to do it by bruteforce, it's probably HUGE number and has to be determined by some math tricks.
2. Find k for which isPandigital(First9Digits(Fib(k)) * 109 + Last9Digits(Fib(k))) == true.
This procedure would turn number of any length to number that had only first 9 and last 9 digits of the former. k is then 175 (and Fib(k) = 167244575 9041379840132227567 949787325). The answer form says this is wrong.
3. Find k for which isPandigital(First9Digits(Fib(k)) & Last9Digits(Fib(k))) == true.
This interprets the AND in the problem statement as bitwise AND. k is then 4633, Fib(k) is 776698159...(950 more digits)...138529553, and 776698159 & 138529553 = 138496257, which is pandigital. The answer form says this is also wrong.
Sooo ... how should I understand the question?





