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 A205185 #22 Sep 08 2022 08:46:01 %S A205185 1,8,9,8,1,0,1,8,9,8,1,0,1,8,9,8,1,0,1,8,9,8,1,0,1,8,9,8,1,0,1,8,9,8, %T A205185 1,0,1,8,9,8,1,0,1,8,9,8,1,0,1,8,9,8,1,0,1,8,9,8,1,0,1,8,9,8,1,0,1,8, %U A205185 9,8,1,0,1,8,9,8,1,0,1,8,9,8,1,0,1,8 %N A205185 Period 6: repeat [1, 8, 9, 8, 1, 0]. %C A205185 The terms of this sequence are the units' digits of the indices of those nonzero triangular numbers that are also perfect squares (A001108). %H A205185 Vincenzo Librandi, <a href="/A205185/b205185.txt">Table of n, a(n) for n = 1..1000</a> %H A205185 <a href="/index/Rec#order_06">Index entries for linear recurrences with constant coefficients</a>, signature (0, 0, 0, 0, 0, 1). %F A205185 G.f.: x*(1+7x+x^2) / ((1-x)*(1+x)*(1-x+x^2)). %F A205185 a(n) = a(n-6) for n>6. %F A205185 a(n) = 9-a(n-3) for n>3. %F A205185 a(n) = a(n-1) - a(n-3) + a(n-4) for n>4. %F A205185 a(n) = 1/6*(27+(-1)^n*(5-32*cos(2*n*Pi/3))). %e A205185 As the fourth nonzero triangular number that is also a perfect square is A000217(288), and 288 has units' digit A010879(288)=8, then a(4)=8. %p A205185 A205185:=n->[1, 8, 9, 8, 1, 0][(n mod 6)+1]: seq(A205185(n), n=0..100); # _Wesley Ivan Hurt_, Jun 18 2016 %t A205185 LinearRecurrence[{0, 0, 0, 0, 0, 1}, {1, 8, 9, 8, 1, 0}, 86] %t A205185 PadRight[{}, 100, {1, 8, 9, 8, 1, 0}] (* _Vincenzo Librandi_, Jun 19 2016 *) %o A205185 (Magma) &cat[[1, 8, 9, 8, 1, 0]: n in [0..20]]; // _Wesley Ivan Hurt_, Jun 18 2016 %o A205185 (PARI) a(n)=[0, 1, 8, 9, 8, 1][n%6+1] \\ _Charles R Greathouse IV_, Jul 17 2016 %Y A205185 Cf. A000217, A000290, A001108, A010879. %K A205185 nonn,easy %O A205185 1,2 %A A205185 _Ant King_, Jan 24 2012