login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A098155 Summarize the previous term in base 4 (in increasing order). 2
1, 11, 21, 1112, 3112, 211213, 312213, 212223, 1110213, 101011213, 201111213, 101112213, 101112213, 101112213, 101112213, 101112213, 101112213, 101112213, 101112213, 101112213, 101112213, 101112213, 101112213, 101112213, 101112213 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

Let a(1)=1. Describing a(1) as "one 1" again gives a(2)=11 (same digit string as A005151 and similar sequences). Likewise, a(3) through a(8) have the same digit strings as the corresponding terms of A005151, but describing a(8) as "one 1, four 2s, one 3" gives a(9)=1110213 when the frequency of digit occurrence is written in base 4 and followed by the digit counted.

LINKS

Table of n, a(n) for n=1..25.

Onno M. Cain, Sela T. Enin, Inventory Loops (i.e. Counting Sequences) have Pre-period 2 max S_1 + 60, arXiv:2004.00209 [math.NT], 2020.

FORMULA

a(n) = 101112213 for all n >= 12 (see example).

EXAMPLE

Summarizing a(12) = 101112213 in increasing digit order, there are "one 0, five 1's, two 2s, one 3", so concatenating 1 0 11 1 2 2 1 3 gives a(13) = 101112213 (=a(14)=a(15)=...).

MATHEMATICA

Nest[Append[#, FromDigits[Flatten@ Map[IntegerDigits[#, 4] & /@ Reverse@ # &, Tally@ Sort@ IntegerDigits@ #[[-1]] ] ]] &, {1}, 24] (* Michael De Vlieger, Jul 15 2020 *)

CROSSREFS

Cf. A098153 (binary), A098154 (ternary), A005151 (decimal and digit strings for all other bases b >= 5).

Sequence in context: A138485 A006711 A005151 * A098154 A007890 A063850

Adjacent sequences:  A098152 A098153 A098154 * A098156 A098157 A098158

KEYWORD

base,easy,nonn

AUTHOR

Rick L. Shepherd, Aug 29 2004

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 18 11:30 EDT 2021. Contains 343995 sequences. (Running on oeis4.)