This site is supported by donations to The OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A161462 Final digit of sum of all the natural numbers from n to 2*n-1. 0
 1, 5, 2, 2, 5, 1, 0, 2, 7, 5, 6, 0, 7, 7, 0, 6, 5, 7, 2, 0, 1, 5, 2, 2, 5, 1, 0, 2, 7, 5, 6, 0, 7, 7, 0, 6, 5, 7, 2, 0, 1, 5, 2, 2, 5, 1, 0, 2, 7, 5, 6, 0, 7, 7, 0, 6, 5, 7, 2, 0, 1, 5, 2, 2, 5, 1, 0, 2, 7, 5, 6, 0, 7, 7, 0, 6, 5, 7, 2, 0, 1, 5, 2, 2, 5, 1 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 COMMENTS Periodic with period length 20. - R. J. Mathar, May 21 2010 Also, units digits of the pentagonal numbers. - Ant King, Jul 12 2011 LINKS Index to sequences with linear recurrences with constant coefficients, signature (0,0,0,0,1,0,0,0,0,-1,0,0,0,0,1). FORMULA a(n) = A000326(n) mod 10. a(n)= +a(n-5) -a(n-10) +a(n-15). [From R. J. Mathar, May 21 2010] a(n)=a(n-20) (Ant King, Jul 12 2011) a(n)=70-a(n-1)-a(n-2)-a(n-3)-....-a(n-19) [Ant King, Jul 12 2011] EXAMPLE If n=1, then a(1)=1. If n=2 and 2+3=5, then a(2)=5. if n=3 and 3+4+5=12, then a(3)=2, etc. MATHEMATICA Table[Mod[n*(3*n - 1)/2, 10], {n, 100}] (* Ant King, Jul 12 2011 *) CROSSREFS Cf. A000027, A000326. Sequence in context: A093008 A198496 A177925 * A164557 A217868 A153842 Adjacent sequences:  A161459 A161460 A161461 * A161463 A161464 A161465 KEYWORD nonn,base,easy AUTHOR Juri-Stepan Gerasimov, Jun 10 2009 EXTENSIONS Entries confirmed by R. J. Mathar, May 21 2010 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified May 19 19:20 EDT 2013. Contains 225436 sequences.