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.

A130794 Periodic sequence with period 1,5,3.

This page as a plain text file.
%I A130794 #29 Dec 12 2023 09:31:50
%S A130794 1,5,3,1,5,3,1,5,3,1,5,3,1,5,3,1,5,3,1,5,3,1,5,3,1,5,3,1,5,3,1,5,3,1,
%T A130794 5,3,1,5,3,1,5,3,1,5,3,1,5,3,1,5,3,1,5,3,1,5,3,1,5,3,1,5,3,1,5,3,1,5,
%U A130794 3,1,5,3,1,5,3,1,5,3,1,5,3,1,5,3,1,5,3,1,5,3,1,5,3,1,5,3,1,5,3,1
%N A130794 Periodic sequence with period 1,5,3.
%C A130794 Continued fraction expansion of (7+sqrt(145))/16. - _Klaus Brockhaus_, Apr 28 2010
%C A130794 Decimal expansion of 17/111. - _R. J. Mathar_, Aug 05 2013
%C A130794 This is also the periodic unsigned Schick sequence for 7. See the Schick reference, p. 158 for p = 7 (the row labels should there be q_j, j >= 0). - _Wolfdieter Lang_, Apr 03 2020
%D A130794 Carl Schick, Trigonometrie und unterhaltsame Zahlentheorie, Bokos Druck, Zürich, 2003 (ISBN 3-9522917-0-6). Tables 3.1 to 3.10, for odd p = 3..113 (with gaps), pp. 158-166. Here p = 7.
%H A130794 <a href="/index/Rec">Index entries for linear recurrences with constant coefficients</a>, signature (0,0,1).
%F A130794 G.f.: ( -1-5*x-3*x^2 ) / ( (x-1)*(1+x+x^2) ). - _R. J. Mathar_, Aug 05 2013
%F A130794 a(n) = 5 - 2 * mod(n+2,3). - _Wesley Ivan Hurt_, Mar 15 2014
%p A130794 A130794:=n->5 - 2 * ((n+2) mod 3); seq(A130794(n), n=0..100); # _Wesley Ivan Hurt_, Mar 15 2014
%t A130794 Table[5 - 2 Mod[n + 2, 3], {n, 0, 100}] (* _Wesley Ivan Hurt_, Mar 15 2014 *)
%t A130794 PadRight[{},120,{1,5,3}] (* _Harvey P. Dale_, Jun 15 2019 *)
%o A130794 (PARI) a(n)=[1,5,3][n%3+1] \\ _Charles R Greathouse IV_, Jun 02 2011
%Y A130794 Cf. A176908 (decimal expansion of (7+sqrt(145))/16). - _Klaus Brockhaus_, Apr 28 2010
%K A130794 nonn,easy,less
%O A130794 0,2
%A A130794 _Paul Curtz_, Jul 15 2007