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!)
A249179 First row of spectral array W(3^(1/3)). 0

%I #26 Dec 14 2014 02:50:00

%S 1,3,4,9,12,29,41,94,135,306,441,997,1437,3251,4688,10602,15290,34574,

%T 49864,112751,162615,367699,530313,1199127,1729440,3910553,5639993,

%U 12752965

%N First row of spectral array W(3^(1/3)).

%C 3^(1/3) = 1.442249570307408382321638310780109588391869253499350577546416...

%C The sequence is generated from the Beatty sequence (A059539) and from the complement of the Beatty sequence (A059540) for 3^(1/3).

%H A. Fraenkel and C. Kimberling, <a href="http://dx.doi.org/10.1016/0012-365X(94)90259-3">Generalized Wythoff arrays, shuffles and interspersions</a>, Discrete Mathematics 126 (1994) 137-149.

%o (PARI)

%o \\ Row i of the generalized Wythoff array W(h),

%o \\ where h is an irrational number between 1 and 2,

%o \\ and m is the number of terms in the vectors b and c.

%o row(h, i, m) = {

%o if(h<=1 || h>=2, print("Invalid value for h"); return);

%o my(

%o b=vector(m, n, floor(n*h)), \\ Beatty sequence for h

%o c=vector(m, n, floor(n*h/(h-1))), \\ Complement of b

%o w=[b[b[i]], c[b[i]]],

%o j=3

%o );

%o while(1,

%o if(j%2==1,

%o if(w[j-1]<=#b, w=concat(w, b[w[j-1]]), return(w))

%o ,

%o if(w[j-2]<=#c, w=concat(w, c[w[j-2]]), return(w))

%o );

%o j++

%o )

%o }

%o allocatemem(10^9)

%o default(realprecision, 100)

%o row(3^(1/3), 1, 10^7)

%Y Cf. A059539, A059540.

%K nonn,more

%O 1,2

%A _Colin Barker_, Dec 03 2014

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 May 5 17:06 EDT 2024. Contains 372276 sequences. (Running on oeis4.)