cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A288535 Array RATS(b,n) by upward antidiagonals: Reverse Add Then Sort digits of n>0 in base b>1.

Original entry on oeis.org

1, 2, 3, 2, 4, 3, 2, 1, 4, 3, 2, 4, 6, 8, 3, 2, 4, 6, 5, 4, 3, 2, 4, 1, 8, 10, 8, 7, 2, 4, 6, 8, 6, 15, 4, 3, 2, 4, 6, 8, 10, 12, 5, 14, 3, 2, 4, 6, 1, 10, 7, 18, 10, 4, 15, 2, 4, 6, 8, 10, 12, 14, 24, 15, 8, 3, 2, 4, 6, 8, 10, 12, 8, 21, 6, 5, 4, 15, 2, 4, 6
Offset: 2

Views

Author

Andrey Zabolotskiy, Jun 11 2017

Keywords

Examples

			17 in base 3 is 122, 122+221=1120->112 which is 14 in decimal, thus RATS(3,17)=14.
The array begins:
1, 3, 3, 3,  3,  3,  7, ...
2, 4, 4, 8,  4,  8,  4, ...
2, 1, 6, 5, 10, 15,  5, ...
2, 4, 6, 8,  6, 12, 18, ...
2, 4, 1, 8, 10,  7, 14, ...
		

Crossrefs

Programs

  • Mathematica
    rats[n_, b_: 10] := FromDigits[Sort[IntegerDigits[n + FromDigits[Reverse[IntegerDigits[n, b]], b], b]], b];
    Flatten[Table[rats[n, s + 2 - n], {s, 20}, {n, s}]]