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 A010732 #26 Aug 05 2025 11:28:55 %S A010732 8,9,8,9,8,9,8,9,8,9,8,9,8,9,8,9,8,9,8,9,8,9,8,9,8,9,8,9,8,9,8,9,8,9, %T A010732 8,9,8,9,8,9,8,9,8,9,8,9,8,9,8,9,8,9,8,9,8,9,8,9,8,9,8,9,8,9,8,9,8,9, %U A010732 8,9,8,9,8,9,8,9,8,9,8,9,8 %N A010732 (17-(-1)^n)/2. %H A010732 <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (0,1). %F A010732 Period 2. %F A010732 G.f.: (-8-9*x) / ((x-1)*(1+x)). - _R. J. Mathar_, Nov 21 2011 %F A010732 a(n) = 8 + (n mod 2) = 9 - ((n+1) mod 2) = (2 + (n mod 2))^(2 + ((n+1) mod 2)). - _Wesley Ivan Hurt_, Apr 16 2014 %p A010732 A010732:=n->(17-(-1)^n)/2; seq(A010732(n), n=0..100); # _Wesley Ivan Hurt_, Apr 16 2014 %t A010732 Table[(17 - (-1)^n)/2, {n, 0, 100}] (* _Wesley Ivan Hurt_, Apr 16 2014 *) %t A010732 LinearRecurrence[{0,1},{8,9},100] (* or *) PadRight[{},100,{8,9}] (* _Harvey P. Dale_, Aug 05 2025 *) %o A010732 (PARI) a(n)=(17-(-1)^n)/2 \\ _Charles R Greathouse IV_, Oct 07 2015 %K A010732 nonn,easy %O A010732 0,1 %A A010732 _N. J. A. Sloane_, Dec 11 1996