Define two sequences by A_n = mex{A_i,B_i : 0 <= i < n}, B_n = B_{n-1} + (A_n-A_{n-1})(A_n-A_{n-1}+1), where the mex of a set is the smallest nonnegative integer not in the set. Sequence gives A_n. B_n is in A081693.

A081692

Define two sequences by A_n = mex{A_i,B_i : 0 <= i < n}, B_n = B_{n-1} + (A_n-A_{n-1})(A_n-A_{n-1}+1), where the mex of a set is the smallest nonnegative integer not in the set. Sequence gives A_n. B_n is in A081693.

Terms

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

External references