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 A181975 #22 Mar 28 2024 13:17:25 %S A181975 1,2,3,4,5,4,3,2,1,2,3,4,5,4,3,2,1,2,3,4,5,4,3,2,1,2,3,4,5,4,3,2,1,2, %T A181975 3,4,5,4,3,2,1,2,3,4,5,4,3,2,1,2,3,4,5,4,3,2,1,2,3,4,5,4,3,2,1,2,3,4, %U A181975 5,4,3,2,1,2,3,4,5,4,3,2,1,2,3,4,5,4,3 %N A181975 The sequence {1, 2, 3, 4, 5, 4, 3, 2} repeated. %H A181975 <a href="/index/Rec#order_05">Index entries for linear recurrences with constant coefficients</a>, signature (1,0,0,-1,1). %F A181975 a(n) = abs(mod((n+3),8)-4)+1. %F A181975 G.f.: (2+x+x^2+x^3+x^4)/((1-x)*(1+x^4)). - _Charles R Greathouse IV_, Apr 04 2012 %t A181975 PadRight[{},120,{1,2,3,4,5,4,3,2}] (* _Harvey P. Dale_, Oct 20 2015 *) %o A181975 (PARI) a(n)=abs((n+3)%8-4)+1 \\ _Charles R Greathouse IV_, Apr 04 2012 %Y A181975 Cf. A131974. %K A181975 nonn,easy %O A181975 1,2 %A A181975 _Steven Sund_, Apr 04 2012