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 A010718 #33 May 15 2025 11:51:01 %S A010718 5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7, %T A010718 5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7,5,7, %U A010718 5,7,5,7,5,7,5,7,5,7,5,7,5 %N A010718 Periodic sequence: repeat [5, 7]. %C A010718 Also continued fraction expansion of (35 + sqrt(1365))/14. - _Bruno Berselli_, Sep 29 2011 %C A010718 Decimal expansion of 19/33. - _R. J. Mathar_, May 15 2025 %H A010718 <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (0,1). %F A010718 From _Paolo P. Lava_, Oct 20 2006: (Start) %F A010718 a(n) = (-1)^(n+1) + 6. %F A010718 (End) %F A010718 From _Vincenzo Librandi_, Aug 01 2010: (Start) %F A010718 a(n) = a(n-2) for n > 1, with a(0)=5, a(1)=7. %F A010718 G.f.: (5+7*x)/((1-x)*(1+x)). (End) %p A010718 seq(op([5, 7]), n=0..100); # _Wesley Ivan Hurt_, Dec 26 2016 %t A010718 (-1)^(Range[0, 100] + 1) + 6 (* _Wesley Ivan Hurt_, Dec 26 2016 *) %o A010718 (Magma) &cat [[5, 7]^^50]; // _Wesley Ivan Hurt_, Dec 26 2016 %o A010718 (PARI) for(n=0,20, print1((-1)^(n+1) + 6, ", ")) \\ _G. C. Greubel_, Dec 26 2016 %o A010718 (Python) %o A010718 def A010718(n): return 5 + 2*(n & 1) # _Chai Wah Wu_, May 25 2022 %K A010718 nonn,easy %O A010718 0,1 %A A010718 _N. J. A. Sloane_ %E A010718 Definition rewritten by _Bruno Berselli_, Sep 29 2011