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 A165662 #31 Dec 12 2023 07:47:21 %S A165662 4,4,8,6,8,4,4,8,6,8,4,4,8,6,8,4,4,8,6,8,4,4,8,6,8,4,4,8,6,8,4,4,8,6, %T A165662 8,4,4,8,6,8,4,4,8,6,8,4,4,8,6,8,4,4,8,6,8,4,4,8,6,8,4,4,8,6,8,4,4,8, %U A165662 6,8,4,4,8,6,8,4,4,8,6,8,4,4,8,6,8,4,4,8,6,8 %N A165662 Period 5: repeat 4,4,8,6,8. %C A165662 This is also the post-period decimal digit of ((n+2)^2-2)/5. %C A165662 Serves also as the decimal expansion of 1495600/33333 and as the continued fraction representation of (33397+sqrt(12952802))/1649. %H A165662 <a href="/index/Rec#order_05">Index entries for linear recurrences with constant coefficients</a>, signature (0,0,0,0,1). %F A165662 a(n) = (2*n^2 + 8*n + 4) mod 10. %F A165662 From _Wesley Ivan Hurt_, Sep 06 2014: (Start) %F A165662 G.f.: 2*(2 + 2*x + 4*x^2 + 3*x^3 + 4*x^4)/(1-x^5). [corrected by _Georg Fischer_, May 11 2019] %F A165662 Recurrence: a(n) = a(n-5). %F A165662 a(n) = (2*A008865(n+1)) mod 10. %F A165662 a(n) = (-A147973(n+4)) mod 10. %F A165662 a(n+1) = 2*A053796(n) + 4. (End) %p A165662 A165662:=n->2*n^2+8*n+4 mod 10: seq(A165662(n), n=0..100); # _Wesley Ivan Hurt_, Sep 06 2014 %t A165662 Table[Mod[2 n^2 + 8 n + 4, 10], {n, 0, 100}] (* _Wesley Ivan Hurt_, Sep 06 2014 *) %t A165662 CoefficientList[Series[2 (2 + 2 x + 4 x^2 + 3 x^3 + 4 x^4)/(1 - x^5), {x, 0, 30}], x] (* _Wesley Ivan Hurt_, Sep 06 2014 *) %o A165662 (Magma) [(2*n^2+8*n+4) mod 10 : n in [0..100]]; // _Wesley Ivan Hurt_, Sep 06 2014 %o A165662 (PARI) a(n)=[4,4,8,6,8][n%5+1] \\ _Edward Jiang_, Sep 06 2014 %Y A165662 Cf. A008865, A053796, A147973. %K A165662 nonn,easy,less %O A165662 0,1 %A A165662 _Vincenzo Librandi_, Sep 24 2009 %E A165662 Definition simplified, offset corrected by _R. J. Mathar_, Sep 25 2009 %E A165662 Name and offset changed by _Wesley Ivan Hurt_, Sep 06 2014