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”).

A186776
Stanley Sequence S(0,2).
7
0, 2, 3, 5, 9, 11, 12, 14, 27, 29, 30, 32, 36, 38, 39, 41, 81, 83, 84, 86, 90, 92, 93, 95, 108, 110, 111, 113, 117, 119, 120, 122, 243, 245, 246, 248, 252, 254, 255, 257, 270, 272, 273, 275, 279, 281, 282, 284, 324, 326, 327, 329, 333, 335, 336, 338, 351, 353, 354, 356, 360, 362, 363, 365, 729, 731, 732, 734, 738, 740
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]
a(n) = A005836(n) + A000035(n). [Tanya Khovanova, Nov 16 2013]
LINKS
FORMULA
Equals A004793(n)-1, also A033160(n)-2, also A033163(n)-3. Note that A004793 has a recurrence.
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