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

A157455
Number generated by regarding the numbers in row n of A157454 as digits of a base n number.
0
1, 3, 19, 125, 1141, 12943, 182743, 3080025, 60530761, 1357997531, 34237329611, 957927505717, 29446189175677, 986272776455415, 35746439978786671, 1393753996031259953, 58165330912030118161, 2586788074128361802419
OFFSET
1,2
COMMENTS
Note that for odd n, the digits will include n itself.
FORMULA
t(n,m)=Min[2*m - 1, 2*(n - m) + 1]; a(n)=FromDigits[{Table[t[n, m], {m, 1, n}], n}, n].
EXAMPLE
Row 4 of A157454 is 1,3,3,1. 1331 in base 4 = 4^3 + 3*4^2 + 3*4 + 1 = 125, so a(4) = 125.
MATHEMATICA
t[n_, m_] =Min[1 + 2*m, 1 + 2*(n - m)];
Table[FromDigits[{Table[t[n, m], {m, 0, n}], n + 1}, n + 1], {n, 0, 20}]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Roger L. Bagula, Mar 01 2009
EXTENSIONS
Edited by Franklin T. Adams-Watters, Sep 25 2011
STATUS
approved