OFFSET
1,1
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..1103
Rémy Sigrist, C program for A074300
EXAMPLE
a(3)=7 because A000002 begins 1,2,2 and this first repeats at position 7.
MAPLE
lim:=1000: s:=[1, 2, 2]: for n from 3 to lim do for i from 1 to s[n] do s:=[op(s), 1+((n-1)mod 2)]: od: od: k:=1: for n from 1 to 1400 do inseq:=true: for m from 1 to k do if(not s[n+m]=s[m])then inseq:=false:break: fi: od: if(inseq)then printf("%d, ", n+1): k:=k+1:fi: od: # Nathaniel Johnston, May 02 2011
PROG
(C) See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
Jon Perry, Sep 21 2002
EXTENSIONS
Extended and edited by John W. Layman, Sep 28 2002
STATUS
approved