a(1) = a(2) = 1. For n >=3, a(n) = the a(n-2)th integer, among those positive integers which are missing from the first (m-1) terms of the sequence, below a(n-1) if such a positive integer exists. Otherwise, a(n) = the a(n-2)th integer, among those positive integers which are missing from the first (m-1) terms of the sequence, above a(n-1).
A118627
a(1) = a(2) = 1. For n >=3, a(n) = the a(n-2)th integer, among those positive integers which are missing from the first (m-1) terms of the sequence, below a(n-1) if such a positive integer exists. Otherwise, a(n) = the a(n-2)th integer, among those positive integers which are missing from the first (m-1) terms of the sequence, above a(n-1).
Terms
- a(0) =1a(1) =1a(2) =2a(3) =3a(4) =5a(5) =8a(6) =13a(7) =21a(8) =6a(9) =30a(10) =24a(11) =55a(12) =31a(13) =87a(14) =56a(15) =144a(16) =88a(17) =233a(18) =145a(19) =379a(20) =234a(21) =614a(22) =380a(23) =995a(24) =615a(25) =1611a(26) =996a(27) =2608a(28) =1612a(29) =4221
External references
- oeis: A118627