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.

A010698 Period 2: repeat (2,8).

This page as a plain text file.
%I A010698 #37 Dec 14 2023 06:05:05
%S A010698 2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,
%T A010698 2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,2,8,
%U A010698 2,8,2,8,2,8,2,8,2,8,2,8,2
%N A010698 Period 2: repeat (2,8).
%C A010698 This is the regular (simple) continued fraction for (2+sqrt(5))/2 = A176055. - Antonia Redondo Buitrago, Jul 30 2009
%H A010698 <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (0,1).
%F A010698 a(n) = -3*(-1)^n+5. - _Paolo P. Lava_, Oct 20 2006
%F A010698 G.f.: 2(1+4x)/((1-x)(1+x)). a(n) = 2*A010685(n). - _R. J. Mathar_, Oct 20 2008
%F A010698 a(n) = (A010674(n)+1)*2. - _Martin Ettl_, Nov 09 2012
%p A010698 A010698:=n->5-3*(-1)^n; seq(A010698(n), n=0..100); # _Wesley Ivan Hurt_, Mar 26 2014
%t A010698 Table[5-3(-1)^n, {n, 0, 100}] (* _Wesley Ivan Hurt_, Mar 26 2014 *)
%t A010698 PadRight[{},120,{2,8}] (* _Harvey P. Dale_, Oct 31 2016 *)
%o A010698 (Maxima) A010698(n):=if evenp(n) then 2 else 8$
%o A010698 makelist(A010698(n),n,0,30); /* _Martin Ettl_, Nov 09 2012 */
%o A010698 (PARI) a(n)=n%2*6+2 \\ _Charles R Greathouse IV_, Jun 11 2015
%K A010698 nonn,easy
%O A010698 0,1
%A A010698 _N. J. A. Sloane_