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.

A010700 Period 2: repeat (2,10).

This page as a plain text file.
%I A010700 #29 Jul 08 2025 01:44:42
%S A010700 2,10,2,10,2,10,2,10,2,10,2,10,2,10,2,10,2,10,2,10,2,10,2,10,2,10,2,
%T A010700 10,2,10,2,10,2,10,2,10,2,10,2,10,2,10,2,10,2,10,2,10,2,10,2,10,2,10,
%U A010700 2,10,2,10,2,10,2,10,2,10,2,10
%N A010700 Period 2: repeat (2,10).
%C A010700 Continued fraction expansion of A176057. - _R. J. Mathar_, Mar 08 2012
%H A010700 <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (0,1).
%F A010700 a(n) = -4*(-1)^n + 6. _Paolo P. Lava_, Oct 20 2006
%F A010700 G.f. (2+10*x)/((1-x)*(1+x)). - _R. J. Mathar_, Nov 21 2011
%F A010700 a(n) = 3^(1-(-1)^n) + 1. - _Bruno Berselli_, Dec 29 2015
%F A010700 a(n) = 2 + 8*(n mod 2) = 2 + 8*A000035(n). - _M. F. Hasler_, Feb 27 2020
%p A010700 A010700 := n -> 2 + irem(n,2)*8; # _M. F. Hasler_, Feb 27 2020
%t A010700 PadRight[{}, 100, {2, 10}] (* _M. F. Hasler_, Feb 27 2020 *)
%o A010700 (PARI) a(n)=2+n%2*8 \\ _Charles R Greathouse IV_, Dec 21 2011
%o A010700 (PARI) apply( {A010700(n)=2+bittest(n,0)<<3}, [0..99]) \\ _M. F. Hasler_, Feb 27 2020
%o A010700 (Magma) &cat [[2,10]^^35]; // _Bruno Berselli_, Dec 29 2015
%Y A010700 Cf. A010679: 3^(1-(-1)^n) - 1.
%Y A010700 Equals 2 + A010679 = 2 + 8*A000035.
%K A010700 nonn,easy
%O A010700 0,1
%A A010700 _N. J. A. Sloane_