Define a(1)=0. Then define b(1)=1, b(2)=1 and for k > 2, b(k) = (b(k-2) + b(k-1)) (mod n). This gives for each n a cyclic repetitive sequence; a(n) is the least k > 1 for the first 1 of the sequence 1,1,....

A096982

Define a(1)=0. Then define b(1)=1, b(2)=1 and for k > 2, b(k) = (b(k-2) + b(k-1)) (mod n). This gives for each n a cyclic repetitive sequence; a(n) is the least k > 1 for the first 1 of the sequence 1,1,....

Terms

    a(0) =0a(1) =4a(2) =9a(3) =7a(4) =21a(5) =25a(6) =17a(7) =13a(8) =25a(9) =61a(10) =11a(11) =25a(12) =29a(13) =49a(14) =41a(15) =25a(16) =37a(17) =25a(18) =19a(19) =61a(20) =17a(21) =31a(22) =49a(23) =25a(24) =101a(25) =85a(26) =73a(27) =49a(28) =15a(29) =121

External references