OFFSET
1,2
COMMENTS
See A185256.
In ternary these numbers have 0's and 1's everywhere, except the last digit is either 0 or 2. [Tanya Khovanova, Nov 16 2013]
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..2000
FORMULA
MATHEMATICA
Select[Range[0, 1000], MatchQ[IntegerDigits[#, 3], {(0|1)..., 0|2}]&] (* Jean-François Alcover, Jan 13 2019, after Tanya Khovanova *)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Mar 19 2011
STATUS
approved