a(1)=1 and, for n>1, a(n)=a(n-1)+n if n is even and a(n)=smallest positive integer which has not yet appeared in the sequence if n is odd.

A094077

a(1)=1 and, for n>1, a(n)=a(n-1)+n if n is even and a(n)=smallest positive integer which has not yet appeared in the sequence if n is odd.

Terms

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

External references