Annual Appeal: Please make a donation (tax deductible in USA) to keep the OEIS running. Over 4500 articles have referenced us, often saying "we would not have discovered this result without the OEIS".
Table of n, a(n) for n=1..41.
Select[Range, Mod[Length[Split[IntegerDigits[#, 3]]], 8]==1&] (* Harvey P. Dale, Mar 07 2013 *)
Sequence in context: A043781 A043786 A043792 * A043807 A043816 A048328
Adjacent sequences: A043796 A043797 A043798 * A043800 A043801 A043802