login
A319803
a(n) = A319651(n) + A038574(n).
7
0, 2, 4, 4, 8, 12, 8, 12, 16, 10, 16, 26, 16, 26, 36, 26, 36, 42, 20, 26, 32, 26, 36, 42, 32, 42, 52, 28, 40, 68, 40, 52, 80, 68, 80, 92, 40, 52, 80, 52, 80, 108, 80, 108, 120, 68, 80, 92, 80, 108, 120, 92, 120, 132, 56, 68, 80, 68, 80, 92, 80, 92, 104, 68, 80, 92, 80, 108, 120, 92, 120, 132, 80, 92
OFFSET
0,2
COMMENTS
This sequence is different from A055946.
LINKS
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
Base b: A319785 (b=2), this sequence (b=3), A319804 (b=4), A319805 (b=5), A319806 (b=6), A319807 (b=7), A319808 (b=8), A319747 (b=9), A052008 (b=10).
Sequence in context: A223317 A027131 A338986 * A055946 A130124 A265417
KEYWORD
nonn,look,base
AUTHOR
Seiichi Manyama, Sep 28 2018
STATUS
approved