a(1)=1; for n > 1, a(n)=smallest m>0 that has not appeared so far in the sequence such that m+a(n-1) is a multiple of n.

A099506

a(1)=1; for n > 1, a(n)=smallest m>0 that has not appeared so far in the sequence such that m+a(n-1) is a multiple of n.

Terms

    a(0) =1a(1) =3a(2) =6a(3) =2a(4) =8a(5) =4a(6) =10a(7) =14a(8) =13a(9) =7a(10) =15a(11) =9a(12) =17a(13) =11a(14) =19a(15) =29a(16) =5a(17) =31a(18) =26a(19) =34a(20) =50a(21) =16a(22) =30a(23) =18a(24) =32a(25) =20a(26) =61a(27) =23a(28) =35a(29) =25

External references