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 A167176 #26 Feb 20 2024 18:38:14 %S A167176 0,1,8,0,1,8,0,1,8,0,1,8,0,1,8,0,1,8,0,1,8,0,1,8,0,1,8,0,1,8,0,1,8,0, %T A167176 1,8,0,1,8,0,1,8,0,1,8,0,1,8,0,1,8,0,1,8,0,1,8,0,1,8,0,1,8,0,1,8,0,1, %U A167176 8,0,1,8,0,1,8,0,1,8,0,1,8,0,1,8,0,1,8,0,1,8,0,1,8,0,1,8,0,1,8,0,1,8,0,1,8 %N A167176 a(n) = n^3 mod 9. %C A167176 Essentially a duplicate of A021559. - _N. J. A. Sloane_, Oct 30 2009 %C A167176 Equivalently: n^(6*m + 3) mod 9. - _G. C. Greubel_, Jun 04 2016 %C A167176 Decimal expansion of 2/111. - _Elmo R. Oliveira_, Feb 19 2024 %H A167176 <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (0,0,1). %F A167176 G.f.: -x*(1+8*x) / ( (x-1)*(1+x+x^2) ). - _R. J. Mathar_, Aug 24 2016 %t A167176 Table[Mod[n^3,9],{n,0,200}] (* _Vladimir Joseph Stephan Orlovsky_, Apr 23 2011 *) %o A167176 (Sage) [power_mod(n,3,9 ) for n in range(0, 105)] %o A167176 (PARI) a(n)=n^3%9 \\ _Charles R Greathouse IV_, Apr 06 2016 %o A167176 (PARI) a(n)=[0,1,8][n%3+1]; \\ _Joerg Arndt_, Feb 20 2024 %K A167176 nonn,easy %O A167176 0,3 %A A167176 _Zerinvary Lajos_, Oct 29 2009