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

A319805
a(n) = A319722(n) + A319653(n).
7
0, 2, 4, 6, 8, 6, 12, 18, 24, 30, 12, 18, 24, 30, 36, 18, 24, 30, 36, 42, 24, 30, 36, 42, 48, 26, 36, 62, 88, 114, 36, 62, 88, 114, 140, 62, 88, 98, 124, 150, 88, 114, 124, 134, 160, 114, 140, 150, 160, 170, 52, 62, 72, 98, 124, 62, 88, 98, 124, 150, 72, 98, 124, 150, 176
OFFSET
0,2
COMMENTS
This sequence is different from A055950.
LINKS
MAPLE
a:= n-> (l-> add((l[i]+l[-i])*5^(i-1), i=1..nops(l)))(sort(convert(n, base, 5))):
seq(a(n), n=0..64); # Alois P. Heinz, Aug 07 2024
MATHEMATICA
Table[FromDigits[Reverse[#], 5] + FromDigits[#, 5] & [Sort[IntegerDigits[n, 5]]], {n, 0, 100}] (* Paolo Xausa, Aug 07 2024 *)
PROG
(PARI) a(n) = my(nd=digits(n, 5)); fromdigits(vecsort(nd), 5) + fromdigits(vecsort(nd, , 4), 5); \\ Michel Marcus, Sep 28 2018
CROSSREFS
Base b: A319785 (b=2), A319803 (b=3), A319804 (b=4), this sequence (b=5), A319806 (b=6), A319807 (b=7), A319808 (b=8), A319747 (b=9), A052008 (b=10).
Sequence in context: A355311 A299477 A360409 * A055950 A294428 A196698
KEYWORD
nonn,look,base
AUTHOR
Seiichi Manyama, Sep 28 2018
STATUS
approved