OFFSET
0,2
COMMENTS
This sequence is different from A055946.
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..6560
MATHEMATICA
Table[FromDigits[Reverse[#], 3] + FromDigits[#, 3] & [Sort[IntegerDigits[n, 3]]], {n, 0, 100}] (* Paolo Xausa, Aug 07 2024 *)
PROG
(PARI) a(n) = my(nd=digits(n, 3)); fromdigits(vecsort(nd), 3) + fromdigits(vecsort(nd, , 4), 3); \\ Michel Marcus, Sep 28 2018
CROSSREFS
KEYWORD
AUTHOR
Seiichi Manyama, Sep 28 2018
STATUS
approved