Блог пользователя uv123

Автор uv123, история, 5 часов назад, По-английски

I have been scouring for resources that i can understand, which prove that the first fibonacci number divisible by K can be found in O(K) time, but I couldnt. Can someone provide a satisfactory proof for that?

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
5 часов назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

Pisano periods might help

  • »
    »
    4 часа назад, # ^ |
    Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

    For Pisano periods, the upper bound is given by P(k) ≤ k*k−1. However, we are primarily concerned with the first occurrence of 0 in F(n)modk and the repetition of the entire sequence (where F(n) is the n-th Fibonacci number). Therefore, I couldn't infer much from it.

    • »
      »
      »
      3 часа назад, # ^ |
        Проголосовать: нравится 0 Проголосовать: не нравится

      There are at most 4 zeros in the Pisano period, so it only changes by a constant factor, and since the 0s repeat they can't be dense in the first quarter of the period or something like that, so they are equivalent (not sure though, might be wrong)

    • »
      »
      »
      3 часа назад, # ^ |
        Проголосовать: нравится +1 Проголосовать: не нравится

      P(k) <= 6k, maybe you should read those sources you scoured for more carefully

      • »
        »
        »
        »
        87 минут назад, # ^ |
          Проголосовать: нравится 0 Проголосовать: не нравится

        where i can get this proof that p(k)<=6k

        • »
          »
          »
          »
          »
          26 минут назад, # ^ |
            Проголосовать: нравится 0 Проголосовать: не нравится

          It's advanced maths, noobs like us can only accept it, but if you still want it, you can refer to the reference list in wikipedia.