a(1)=1. a(2)=2. a(n) = the smallest positive integer not occurring earlier in the sequence such that a(n-2)+a(n-1) is congruent to a(n) (mod n).

A125727

a(1)=1. a(2)=2. a(n) = the smallest positive integer not occurring earlier in the sequence such that a(n-2)+a(n-1) is congruent to a(n) (mod n).

Terms

    a(0) =1a(1) =2a(2) =3a(3) =5a(4) =8a(5) =7a(6) =15a(7) =6a(8) =12a(9) =18a(10) =19a(11) =13a(12) =32a(13) =17a(14) =4a(15) =21a(16) =25a(17) =10a(18) =16a(19) =26a(20) =42a(21) =24a(22) =20a(23) =44a(24) =14a(25) =58a(26) =45a(27) =47a(28) =34a(29) =51

External references