a(0)=1, a(1)=2; a(2n) = 2*a(2n-1)+1; a(2n+1) = a(2n) + x, where x is the least number not yet the difference of two terms.

A111328

a(0)=1, a(1)=2; a(2n) = 2*a(2n-1)+1; a(2n+1) = a(2n) + x, where x is the least number not yet the difference of two terms.

Terms

    a(0) =1a(1) =2a(2) =5a(3) =7a(4) =15a(5) =22a(6) =45a(7) =54a(8) =109a(9) =120a(10) =241a(11) =253a(12) =507a(13) =523a(14) =1047a(15) =1065a(16) =2131a(17) =2150a(18) =4301a(19) =4323a(20) =8647a(21) =8671a(22) =17343a(23) =17368a(24) =34737a(25) =34763a(26) =69527a(27) =69554a(28) =139109a(29) =139137

External references