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

A358873
a(1) = 1. For n >= 2, to obtain a(n), concatenate the numbers n,...,1,a(1),...,a(n-1).
0
1, 211, 3211211, 432112113211211, 5432112113211211432112113211211, 654321121132112114321121132112115432112113211211432112113211211
OFFSET
1,2
COMMENTS
Most of the terms appear to have relatively few and large prime factors.
For single-digit n, the digit length of a(n) is 2^n-1, with each digit n, n-1, ..., 1 occurring 2^0, 2^1, ..., 2^(n-1) times. However, this simple regularity will not hold for n >= 10.
An alternative construction method is using reverse S of A082850.
Yet another way is doubling a(n-1) and prepending n to get a(n). This formula is valid only for n <= 10: a(n) = n*10^(2^n-2) + a(n-1)*10^(2^(n-1)-1) + a(n-1).
EXAMPLE
For n = 3, to get a(3) we first concatenate the n's in reverse order: 3, 2 and 1, then we continue concatenating to this chain the a(n)'s in forward order up to a(2): 1, 211. Thus the resulting chain a(3) = 3211211.
For n = 4, a(4) is concatenation
a(4) = 4 3 2 1 1 211 3211211
parts: n ... 1 a(1) a(2) a(3)
MATHEMATICA
a[1] = 1; a[n_] := a[n] = FromDigits[Join @@ IntegerDigits[Join[Range[n, 1, -1], Array[a, n - 1]]]]; Array[a, 6] (* Amiram Eldar, Dec 05 2022 *)
CROSSREFS
Cf. A082850.
Sequence in context: A181002 A323426 A099687 * A133651 A093807 A088642
KEYWORD
nonn,base,easy
AUTHOR
Tamas Sandor Nagy, Dec 04 2022
STATUS
approved