|
| |
|
|
A059995
|
|
Drop final digit of n.
|
|
9
| |
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 0,21
|
|
|
LINKS
| Harry J. Smith, Table of n, a(n) for n=0,...,1000
Index entries for sequences related to final digits of numbers
|
|
|
FORMULA
| a(n) =a(n-10)+1 =floor[n/10] =(n-A010879(n))/10. G.f.: x^10/((1-x)(1-x^10))
Partial sums are given by A131242. - Hieronymus Fischer (Hieronymus.Fischer(AT)gmx.de), Jun 21 2007
|
|
|
PROG
| (PARI) a(n)=if(n<0, 0, n\10)
(PARI) { for (n=0, 1000, write("b059995.txt", n, " ", n\10); ) } [From Harry J. Smith (hjsmithh(AT)sbcglobal.net), Jul 01 2009]
(Other) sage: [floor(n/5)-floor(n/10) for n in xrange(-5, 98)]# [From Zerinvary Lajos (zerinvarylajos(AT)yahoo.com), Dec 02 2009]
|
|
|
CROSSREFS
| Cf. A004526, A054899.
Sequence in context: A111851 A111852 A133880 * A132272 A179051 A054899
Adjacent sequences: A059992 A059993 A059994 * A059996 A059997 A059998
|
|
|
KEYWORD
| base,easy,nonn
|
|
|
AUTHOR
| Henry Bottomley (se16(AT)btinternet.com), Mar 12 2001
|
| |
|
|