%I #24 Sep 08 2022 08:45:05
%S 0,1,8,5,9,4,7,2,6,3,10,0,1,8,5,9,4,7,2,6,3,10,0,1,8,5,9,4,7,2,6,3,10,
%T 0,1,8,5,9,4,7,2,6,3,10,0,1,8,5,9,4,7,2,6,3,10,0,1,8,5,9,4,7,2,6,3,10,
%U 0,1,8,5,9,4,7,2,6,3,10,0,1,8,5,9,4,7,2,6,3,10,0,1,8,5,9,4,7,2,6,3,10
%N a(n) = n^3 mod 11.
%H Vincenzo Librandi, <a href="/A070473/b070473.txt">Table of n, a(n) for n = 0..1000</a>
%H <a href="/index/Rec#order_11">Index entries for linear recurrences with constant coefficients</a>, signature (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1).
%F a(n) = a(n-11). - _G. C. Greubel_, Mar 26 2016
%t Table[Mod[n^3,11],{n,0,200}] (* _Vladimir Joseph Stephan Orlovsky_, Apr 23 2011 *)
%t PowerMod[Range[0,120],3,11] (* or *) PadRight[{},120,{0,1,8,5,9,4,7,2,6,3,10}] (* _Harvey P. Dale_, May 04 2019 *)
%o (Sage) [power_mod(n,3,11 ) for n in range(0, 99)] # _Zerinvary Lajos_, Oct 29 2009
%o (Magma) [n^3 mod 11: n in [0..80] ]; // _Vincenzo Librandi_, Jun 01 2011
%o (PARI) a(n)=n^3%11 \\ _Charles R Greathouse IV_, Apr 06 2016
%Y Cf. A008960, A070474, A167176.
%K nonn,easy
%O 0,3
%A _N. J. A. Sloane_, May 12 2002