If n doesn't occur among the first (n-1) terms of the sequence, then a(n) = 2n. If n occurs among the first (n-1) terms of the sequence, then a(n) = n/2.
A118967
If n doesn't occur among the first (n-1) terms of the sequence, then a(n) = 2n. If n occurs among the first (n-1) terms of the sequence, then a(n) = n/2.
Terms
- a(0) =1a(1) =4a(2) =6a(3) =2a(4) =10a(5) =3a(6) =14a(7) =16a(8) =18a(9) =5a(10) =22a(11) =24a(12) =26a(13) =7a(14) =30a(15) =8a(16) =34a(17) =9a(18) =38a(19) =40a(20) =42a(21) =11a(22) =46a(23) =12a(24) =50a(25) =13a(26) =54a(27) =56a(28) =58a(29) =15
External references
- oeis: A118967