Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A080634
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A080634 Start with a(1)=1. Then, for n>1, choose a(n)=1 or 2 so as to minimize the longest arithmetic progression in either S1(n) or S2(n), where S1(n)={k|a(k)=1,1<=k<=n} and S2(n)={k|a(k)=2,1<=k<=n}. +0
1
1, 2, 1, 2, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 2, 2, 1, 2, 2, 1, 1, 2, 1, 2, 1, 2, 2, 2, 1, 1, 1, 2, 2, 1, 2, 1, 1, 2, 2, 2, 1, 1, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 2, 2, 2, 2, 2, 1, 2, 1, 1, 1, 2, 1, 2, 2, 2, 1, 2, 2, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 2, 2, 1, 2, 1, 1, 2, 1, 2, 1, 1, 2, 2, 2, 1, 2, 1, 2 (list; graph; listen)
OFFSET

1,2

EXAMPLE

Given the first seven terms as {1,2,1,2,2,1,2}, we find that a(8)=1 gives S1(8)={1,3,6,8}, S2(8)={2,4,5,7}, both with maximum AP's of length 2, whereas a(8)=2 gives S1(8)={1,3,6}, S2(8)={2,4,5,7,8}, with max length AP's of 2 for S1 and 3 for S2. So a(8) must be assigned the value of 1.

CROSSREFS

Sequence in context: A100429 A049710 A025143 this_sequence A109925 A001468 A014675

Adjacent sequences: A080631 A080632 A080633 this_sequence A080635 A080636 A080637

KEYWORD

nonn

AUTHOR

John W. Layman (layman(AT)math.vt.edu), Feb 27 2003

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 November 27 14:50 EST 2009. Contains 167570 sequences.


AT&T Labs Research