OFFSET
1,2
REFERENCES
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
Aviezri S. Fraenkel and Clark Kimberling, Generalized Wythoff arrays, shuffles and interspersions, Discr. Math. 126 (1-3) (1994) 137-149. [From R. J. Mathar, Aug 17 2009]
MAPLE
Digits := 200 : WythSpec := proc(n, x) floor(n*x) ; end: A001951 := proc(n) WythSpec(n, sqrt(2)) ; end: A001952 := proc(n) A001951(n)+2*n; end: Wsqrt2 := proc(i, j) option remember ; if j = 1 then A001951(A001951(i)) ; elif j = 2 then A001952(A001951(i)) ; elif type(j, 'odd') then A001951(procname(i, j-1)) ; else A001952(procname(i, j-2)) ; fi; end: A007071 := proc(n) option remember ; local a; if n = 1 then 1; else for a from procname(n-1)+1 do for k from 1 do if Wsqrt2(k, 1) = a then RETURN(a); elif Wsqrt2(k, 1) > a then break; fi; od: for k from 1 do if Wsqrt2(k, 2) = a then RETURN(a); elif Wsqrt2(k, 2) > a then break; fi; od: od: fi; end: seq(A007071(n), n=1..100) ; # R. J. Mathar, Aug 17 2009
MATHEMATICA
WythSpec[n_, x_] := Floor[n*x] ;
A001951[n_] := WythSpec[n, Sqrt[2]];
WSqrt2[i_, j_] := WSqrt2[i, j] = Which[j == 1, A001951[A001951[i]], j == 2, A001952[A001951[i]], OddQ[j], A001951[WSqrt2[i, j-1]], True, A001952[WSqrt2[i, j-2]]];
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
More terms from R. J. Mathar, Aug 17 2009
STATUS
approved