a(n) = (n+1)/2 if n occurs among the first n-1 terms of the sequence, otherwise a(n) = 2*n - 1.

A118966

a(n) = (n+1)/2 if n occurs among the first n-1 terms of the sequence, otherwise a(n) = 2*n - 1.

Terms

    a(0) =1a(1) =3a(2) =2a(3) =7a(4) =9a(5) =11a(6) =4a(7) =15a(8) =5a(9) =19a(10) =6a(11) =23a(12) =25a(13) =27a(14) =8a(15) =31a(16) =33a(17) =35a(18) =10a(19) =39a(20) =41a(21) =43a(22) =12a(23) =47a(24) =13a(25) =51a(26) =14a(27) =55a(28) =57a(29) =59

External references