OFFSET
1,1
COMMENTS
The lower and upper Wythoff sequences, A and B, satisfy the complementary equation BBB=3A+5B.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..5000
Clark Kimberling, Complementary equations and Wythoff Sequences, Journal of Integer Sequences 11 (2008) Article 08.3.3.
FORMULA
a(n) = B(B(B(n))), n>=1, with B=A001950, the upper Wythoff sequence.
MAPLE
a:=n->floor(n*((1+sqrt(5))/2)^2): [a(a(a(n)))$n=1..55]; # Muniru A Asiru, Nov 24 2018
MATHEMATICA
Nest[Quotient[#(3+Sqrt@5), 2]&, #, 3]&/@Range@100 (* Federico Provvedi, Nov 24 2018 *)
b[n_]:=Floor[n GoldenRatio^2]; a[n_]:=b[b[b[n]]]; Array[a, 60] (* Vincenzo Librandi, Nov 24 2018 *)
PROG
(Python)
from sympy import floor
from mpmath import phi
def B(n): return floor(n*phi**2)
def a(n): return B(B(B(n))) # Indranil Ghosh, Jun 10 2017
(Python)
from math import isqrt
def A134864(n): return (m:=5*n)+(((n+isqrt(n*m))&-2)<<2) # Chai Wah Wu, Aug 10 2022
CROSSREFS
Cf. A000201, A001950, A003622, A003623, A035336, A101864, A134859, A035337, A134860, A134861, A134862, A035338, A134863, A035513.
KEYWORD
nonn
AUTHOR
Clark Kimberling, Nov 14 2007
STATUS
approved