login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A225743 Triangular array: row n is least squarefree word of length n using positive integers. 1
1, 1, 2, 1, 2, 1, 1, 2, 1, 3, 1, 2, 1, 3, 1, 1, 2, 1, 3, 1, 2, 1, 2, 1, 3, 1, 2, 1, 1, 2, 1, 3, 1, 2, 1, 4, 1, 2, 1, 3, 1, 2, 1, 4, 1, 1, 2, 1, 3, 1, 2, 1, 4, 1, 2, 1, 2, 1, 3, 1, 2, 1, 4, 1, 2, 1, 1, 2, 1, 3, 1, 2, 1, 4, 1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 4 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
Squarefree means that the word contains no consecutive identical subwords.
LINKS
EXAMPLE
The first 10 rows are shown here:
1
1 2
1 2 1
1 2 1 3
1 2 1 3 1
1 2 1 3 1 2
1 2 1 3 1 2 1
1 2 1 3 1 2 1 4
1 2 1 3 1 2 1 4 1
1 2 1 3 1 2 1 4 1 2
1 contains no square; 11 contains a square but 12 does not; 121 contains no square; both 1211 and 1212 have squares but 1213 does not.
MATHEMATICA
squareFreeQ[string_] := StringFreeQ[string, a__ ~~ a__]; t = {}; s = Table[AppendTo[t, NestWhile[# + 1 &, 1, ! squareFreeQ[ToString[FromDigits[Append[t, #]]]] &]], {20}];
TableForm[s] (* A225743 array *)
Flatten[s] (* A225743 sequence *)
Map[IntegerExponent[2*#, 2] &, Range[Range[33]]] (* A225743 array, by formula *)
(* Peter J. C. Moses, Sep 03 2013 *)
CROSSREFS
Cf. A001511 (the limiting sequence)
Sequence in context: A271608 A087740 A029439 * A218828 A075117 A279387
KEYWORD
nonn,tabl,easy
AUTHOR
Clark Kimberling, Sep 03 2013
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 15:11 EDT 2024. Contains 371794 sequences. (Running on oeis4.)