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

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

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?

FOUND IN EDITORIAL

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

»
4 недели назад, # |
  Проголосовать: нравится +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.

    • »
      »
      »
      4 недели назад, # ^ |
        Проголосовать: нравится 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)

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

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