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.

A010717 Period 2: repeat (5,6).

This page as a plain text file.
%I A010717 #45 Dec 14 2023 06:05:25
%S A010717 5,6,5,6,5,6,5,6,5,6,5,6,5,6,5,6,5,6,5,6,5,6,5,6,5,6,5,6,5,6,5,6,5,6,
%T A010717 5,6,5,6,5,6,5,6,5,6,5,6,5,6,5,6,5,6,5,6,5,6,5,6,5,6,5,6,5,6,5,6,5,6,
%U A010717 5,6,5,6,5,6,5,6,5,6,5,6,5
%N A010717 Period 2: repeat (5,6).
%C A010717 This is the continued fraction expansion of the constant A176320 = 5/2 + sqrt(255)/6. - _R. J. Mathar_, Nov 21 2011
%H A010717 <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (0,1).
%F A010717 From _Vincenzo Librandi_, Aug 01 2010: (Start)
%F A010717 a(n) = a(n-2) for n>1; a(0)=5, a(1)=6.
%F A010717 G.f.: (5+6*x)/((1-x)*(1+x)). (End)
%F A010717 a(n) = floor(11*(n+1)/2) - floor(11*n/2). - _James Van Alstine_, Jul 17 2014
%p A010717 A010717:= n -> 5 + (n mod 2):
%p A010717 seq(A010717(n),n=0..10); # _Robert Israel_, Jul 17 2014
%t A010717 Table[5 + Mod[n, 2], {n, 0, 50}] (* _Jinyuan Wang_, Feb 26 2020 *)
%o A010717 (PARI) contfrac(5/2+sqrt(precision(255.,150))/6) \\ Note: Depending on the chosen precision, the last term may be off by +/- 1, so it would be safer to discard it, e.g., using vecextract(...,"^-1"). - _M. F. Hasler_, Sep 25 2013
%o A010717 (PARI) a(n)=n%2+5 \\ _Charles R Greathouse IV_, Jul 13 2016
%K A010717 nonn,easy
%O A010717 0,1
%A A010717 _N. J. A. Sloane_