OFFSET
1,1
COMMENTS
See A184117 for the definition of lower and upper s-Wythoff sequences.
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
Clark Kimberling, Beatty Sequences and Wythoff Sequences, Generalized, Fibonacci Quart. 49 (2011), no. 3, 195-200.
MATHEMATICA
k = 4; r = 2; d = Sqrt[4 + k^2];
a[n_] := Floor[(1/2) (d + 2 - k) (n + r/(d + 2))];
b[n_] := Floor[(1/2) (d + 2 + k) (n - r/(d + 2))];
Table[a[n], {n, 120}] (* A184516 *)
Table[b[n], {n, 120}] (* A184517 *)
(* alternate program *)
Table[Ceiling[(2 n - 1) GoldenRatio^2], {n, 1, 120}] (* Jon Maiga, Nov 15 2018 *)
PROG
(PARI) vector(100, n, floor((3+sqrt(5))*(n - 1/(1+sqrt(5))))) \\ G. C. Greubel, Nov 16 2018
(Magma) [Floor((3+Sqrt(5))*(n - 1/(1+Sqrt(5)))): n in [1..100]]; // G. C. Greubel, Nov 16 2018
(SageMath) [floor((3+sqrt(5))*(n - 1/(1+sqrt(5)))) for n in (1..100)] # G. C. Greubel, Nov 16 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Jan 16 2011
STATUS
approved
