The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A332263 Maximal length of a string over the alphabet {0,1,2} with the property that its contiguous substrings of length n all have different quantities of 0's, 1's, or 2's. 1
3, 7, 12, 17, 22, 30, 39, 45, 56, 66, 77, 90 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
In other words, the contiguous substrings of length n are all different if we interpret them as multisets.
Since there are binomial(n+2,2) different triples of nonnegative integers summing up to n, we have the bound a(n) <= binomial(n+2,2)+n-1. Equality holds if and only if n <= 3.
LINKS
Bert Dobbelaere, C++ program
EXAMPLE
Maximal strings for n = 1, 2, ..., 8 are:
012
0011220
011122200012
00111122220000121
0100212111000002222211
001011112122220200001012120200
010010220212110100000202222212111110100
021200201101121220202000010111111212222220200
CROSSREFS
Sequence in context: A310246 A310247 A350426 * A310248 A298022 A227133
KEYWORD
nonn,more,hard
AUTHOR
Nathaniel Johnston, Feb 08 2020
EXTENSIONS
a(9)-a(12) from Bert Dobbelaere, Feb 09 2020
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 June 1 02:53 EDT 2024. Contains 373008 sequences. (Running on oeis4.)