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 B_n. A_n is in A081692.

A081693

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 B_n. A_n is in A081692.

Terms

    a(0) =0a(1) =2a(2) =8a(3) =10a(4) =12a(5) =14a(6) =16a(7) =22a(8) =28a(9) =34a(10) =40a(11) =46a(12) =48a(13) =50a(14) =52a(15) =54a(16) =60a(17) =62a(18) =64a(19) =66a(20) =68a(21) =74a(22) =76a(23) =78a(24) =80a(25) =82a(26) =88a(27) =90a(28) =92a(29) =94

External references