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.
%I A131029 #34 Dec 12 2023 09:24:12 %S A131029 11,5,2,5,11,14,11,5,2,5,11,14,11,5,2,5,11,14,11,5,2,5,11,14,11,5,2,5, %T A131029 11,14,11,5,2,5,11,14,11,5,2,5,11,14,11,5,2,5,11,14,11,5,2,5,11,14,11, %U A131029 5,2,5,11,14,11,5,2,5,11,14,11,5,2,5,11,14,11,5,2,5,11,14,11,5,2,5,11,14 %N A131029 Periodic sequence (11, 5, 2, 5, 11, 14). %C A131029 Fifth column of triangular array T defined in A131022. %H A131029 <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (2,-2,1). %F A131029 a(1) = a(5) = 11, a(2) = a(4) = 5, a(3) = 2, a(6) = 14; for n > 6, a(n) = a(n-6). %F A131029 G.f.: (11-17*x+14*x^2)/((1-x)*(1-x+x^2)). %F A131029 a(n) = 3*cos((n-1)/3*Pi)-3*sqrt(3)*sin((n-1)/3*Pi)+8. - _Leonid Bedratyuk_, May 13 2012 %t A131029 PadRight[{},120,{11,5,2,5,11,14}] (* or *) LinearRecurrence[{2,-2,1},{11,5,2},120] (* _Harvey P. Dale_, Jun 12 2017 *) %o A131029 (PARI) {m=84; for(n=1, m, r=(n-1)%6; print1(if(r==0||r==4, 11, if(r==2, 2, if(r==5, 14, 5))), ","))} %o A131029 (Magma) m:=84; [ [11, 5, 2, 5, 11, 14][(n-1) mod 6 + 1]: n in [1..m] ]; %o A131029 (Python) %o A131029 def a(n): return [11, 5, 2, 5, 11, 14][n%6] %o A131029 print([a(n) for n in range(84)]) # _Michael S. Branicky_, Nov 05 2021 %Y A131029 Cf. A131022. Other columns of T are in A088911, A131026, A131027, A131028, A131030. %K A131029 nonn,easy %O A131029 1,1 %A A131029 _Klaus Brockhaus_, following a suggestion of _Paul Curtz_, Jun 10 2007