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

A112867
Greater of two ternary (base 3) numbers (each using only 0's and 1's, the latter's positions never coinciding) such that the decimal representation of their difference is n.
1
0, 1, 10, 10, 11, 100, 100, 101, 100, 100, 101, 110, 110, 111, 1000, 1000, 1001, 1000, 1000, 1001, 1010, 1010, 1011, 1000, 1000, 1001, 1000, 1000, 1001, 1010, 1010, 1011, 1100, 1100, 1101, 1100, 1100, 1101, 1110, 1110, 1111, 10000, 10000, 10001, 10000
OFFSET
0,3
COMMENTS
Base 3 representation of A060372. For the smaller number see A112952. Any number is expressible as a unique combination of powers of 3 in the form +/- 3^0 +/- 3^1 +/- 3^2 +/- 3^3 +/- ...(Related to Bachet's Weight problem)
CROSSREFS
Sequence in context: A229902 A004209 A162720 * A215511 A280105 A173198
KEYWORD
nonn,base
AUTHOR
Lekraj Beedassy, Jan 12 2006
STATUS
approved