# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/ Search: id:a008960 Showing 1-1 of 1 %I A008960 #59 Dec 18 2023 12:16:58 %S A008960 0,1,8,7,4,5,6,3,2,9,0,1,8,7,4,5,6,3,2,9,0,1,8,7,4,5,6,3,2,9,0,1,8,7, %T A008960 4,5,6,3,2,9,0,1,8,7,4,5,6,3,2,9,0,1,8,7,4,5,6,3,2,9,0,1,8,7,4,5,6,3, %U A008960 2,9,0,1,8,7,4,5,6,3,2,9,0,1,8,7,4,5 %N A008960 Final digit of cubes: n^3 mod 10. %C A008960 Decimal expansion of 208284810/1111111111. - _Alexander R. Povolotsky_, Mar 08 2013 %H A008960 Vincenzo Librandi, Table of n, a(n) for n = 0..5000 %H A008960 Index entries for sequences related to final digits of numbers %H A008960 Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,0,0,1). %F A008960 Periodic with period 10. - _Franklin T. Adams-Watters_, Mar 13 2006 %F A008960 a(n) = 4.5 -cos(Pi*n/5) +(1/2*(-(5-5^(1/2))^(1/2) +(5+5^(1/2))^(1/2))*2^(1/2))*sin(Pi*n/5) -cos(2*Pi*n/5) +(-1/10*(-(5-5^(1/2))^(1/2)+3*(5+5^(1/2))^(1/2))*2^(1/2))*sin(2*Pi*n/5) -cos(3*Pi*n/5) +(-1/2*((5-5^(1/2))^(1/2) +(5+5^(1/2))^(1/2))*2^(1/2))*sin(3*Pi*n/5) -cos(4*Pi*n/5) +( -1/10*(3*(5-5^(1/2))^(1/2) +(5 +5^(1/2))^(1/2))*2^(1/2))*sin(4*Pi*n/5) -0.5*(-1)^n. - _Richard Choulet_, Dec 12 2008 %F A008960 a(n) = n^k mod 10; for k > 0 where k mod 4 = 3. - _Doug Bell_, Jun 15 2015 %F A008960 G.f.: x*(1+8*x+7*x^2+4*x^3+5*x^4+6*x^5+3*x^6+2*x^7+9*x^8) / ((1-x)*(1+x)*(1-x+x^2-x^3+x^4)*(1+x+x^2+x^3+x^4)). - _Colin Barker_, Nov 30 2015 %t A008960 Table[Mod[n^3,10],{n,0,200}] (* _Vladimir Joseph Stephan Orlovsky_, Apr 23 2011 *) %t A008960 LinearRecurrence[{0, 0, 0, 0, 0, 0, 0, 0, 0, 1},{0, 1, 8, 7, 4, 5, 6, 3, 2, 9},81] (* _Ray Chandler_, Aug 26 2015 *) %o A008960 (Sage) [power_mod(n,3,10 ) for n in range(0, 81)] # _Zerinvary Lajos_, Oct 29 2009 %o A008960 (PARI) a(n)=n^3%10 \\ _Charles R Greathouse IV_, Mar 08 2013 %o A008960 (Magma) [n^3 mod 10: n in [0..80]]; // _Vincenzo Librandi_, Mar 26 2013 %o A008960 (PARI) concat(0, Vec(x*(1+8*x+7*x^2+4*x^3+5*x^4+6*x^5+3*x^6+2*x^7+9*x^8) / ((1-x)*(1+x)*(1-x+x^2-x^3+x^4)*(1+x+x^2+x^3+x^4)) + O(x^100))) \\ _Colin Barker_, Nov 30 2015 %Y A008960 Cf. A167176. %Y A008960 Cf. A010879, A008959, A070514. - _Doug Bell_, Jun 15 2015 %K A008960 nonn,easy,base %O A008960 0,3 %A A008960 _N. J. A. Sloane_ # Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE