John Doe list Fibonacci number modulo 1013 this list infinite start number 0 1 each number list apart sum previous modulo 1013 that Johns list Fibonacci number list replace number remainder divide 1013 John get interested number f 0f1013 wants find occurrence list give Help John find number occurence number f list state number f occur list the numeration Johns list start zero there 0th position number 0 1st position number 1 2nd position number 1 3rd position number 2 4th position number 3 thus beginning list look like 01123581321