cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A022165 First row of spectral array W(sqrt(5)-1).

This page as a plain text file.
%I A022165 #22 May 14 2019 11:11:44
%S A022165 1,5,6,26,32,136,168,712,880,3728,4608,19520,24128,102208,126336,
%T A022165 535168,661504,2802176,3463680,14672384,18136064,76825600,94961664,
%U A022165 402264064,497225728,2106281984,2603507712
%N A022165 First row of spectral array W(sqrt(5)-1).
%H A022165 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.
%F A022165 Conjectures: a(n) = 6*a(n-2)-4*a(n-4). G.f.: -(x+1)*(4*x^2-4*x-1) / (4*x^4-6*x^2+1). - _Colin Barker_, Oct 23 2014
%o A022165 (PARI)
%o A022165 \\ The first row of the generalized Wythoff array W(h),
%o A022165 \\   where h is an irrational number between 1 and 2.
%o A022165 row1(h, m) = {
%o A022165   my(
%o A022165     a=vector(m, n, floor(n*h)),
%o A022165     b=setminus(vector(m, n, n), a),
%o A022165     w=[a[1]^2, b[a[1]]],
%o A022165     j=3
%o A022165   );
%o A022165   while(1,
%o A022165     if(j%2==1,
%o A022165       if(w[j-1]<=#a, w=concat(w, a[w[j-1]]), return(w))
%o A022165     ,
%o A022165       if(w[j-2]<=#b, w=concat(w, b[w[j-2]]), return(w))
%o A022165     );
%o A022165     j++
%o A022165   );
%o A022165   w
%o A022165 }
%o A022165 row1(sqrt(5)-1, 100000) \\ _Colin Barker_, Oct 23 2014
%K A022165 nonn,more
%O A022165 0,2
%A A022165 _Clark Kimberling_
%E A022165 a(14)-a(18) from _Colin Barker_, Oct 23 2014 and _Michel Marcus_, Oct 24 2014
%E A022165 a(19)-a(26) from _Sean A. Irvine_, May 14 2019