|
| |
|
|
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; internal format)
|
|
|
|
OFFSET
| 1,2
|
|
|
COMMENTS
| Periodic with period length 20. [From R. J. Mathar (mathar(AT)strw.leidenuniv.nl), May 21 2010]
Also, units digits of the pentagonal numbers. [Ant King, Jul 12 2011]
|
|
|
FORMULA
| a(n) = A000326(n) mod 10. a(n)= +a(n-5) -a(n-10) +a(n-15). [From R. J. Mathar (mathar(AT)strw.leidenuniv.nl), May 21 2010]
a(n)=a(n-20) (Ant King 12 July 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 A153842 A125136
Adjacent sequences: A161459 A161460 A161461 * A161463 A161464 A161465
|
|
|
KEYWORD
| nonn,base
|
|
|
AUTHOR
| Juri-Stepan Gerasimov (2stepan(AT)rambler.ru), Jun 10 2009
|
|
|
EXTENSIONS
| Entries confirmed by R. J. Mathar (mathar(AT)strw.leidenuniv.nl), May 21 2010
|
| |
|
|