Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A161810
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A161810 a(n) is the maximum possible length of a sequence consisting of integers [0..n-1] such that no two nonempty adjacent segments of the same length have the same sum modulo n. +0
1
1, 3, 7, 16, 33, 35 (list; graph; listen)
OFFSET

1,2

COMMENT

The original source for this sequence was the problem 'perlbrac' in the 2009 USACO Holiday Contest (http://ace.delos.com/HOL09) which asked contestants to find the longest sequences of this type that they possibly could. a(n) is the upper bound on the length of such a sequence for a given n.

EXAMPLE

For example, in the sequence 0, 1, 2, 1, 0, 1, 2 (length 7) consisting of integers in the range [0..2], no two adjacent segments of equal length (e.g. 0, 1, 2 and 1, 0, 1) have the same sum modulo 3. There is also no longer sequence with this property, hence a(3) = 7.

CROSSREFS

Sequence in context: A117491 A110585 A000412 this_sequence A084631 A002936 A014668

Adjacent sequences: A161807 A161808 A161809 this_sequence A161811 A161812 A161813

KEYWORD

hard,more,nonn

AUTHOR

Brian Bi (bbi5291(AT)gmail.com), Jun 19 2009

EXTENSIONS

Definition and source corrected by Brian Bi (bbi5291(AT)gmail.com), Sep 19 2009

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 5 08:23 EST 2009. Contains 170348 sequences.


AT&T Labs Research