login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A105266
a(1)=1 and, for n>1, a(n) is the smallest integer greater than a(n-1) such that no three terms x,y,z of the sequence, with x<y<z, satisfy z-y=y-x+1.
0
1, 2, 3, 7, 8, 9, 19, 20, 21, 25, 26, 27, 55, 56, 57, 61, 62, 63, 73, 74, 75, 79, 80, 81, 163, 164, 165, 169, 170, 171, 181, 182, 183, 187, 188, 189, 217, 218, 219, 223, 224, 225, 235, 236, 237, 241, 242, 243, 487, 488, 489, 493, 494, 495, 505, 506, 507, 511, 512
OFFSET
1,2
COMMENTS
It appears that {a(n)} consists exactly of those positive integers whose base-3 representation satisfies (i) only 0's follow a 1 and (ii) a final run of 0's must follow a 1.
CROSSREFS
Cf. A003278.
Sequence in context: A246440 A332699 A347153 * A246448 A054996 A338691
KEYWORD
nonn
AUTHOR
John W. Layman, Apr 15 2005
STATUS
approved