login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A059995 Drop final digit of n. 16
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; text; 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

Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,0,0,0,0,1,-1).

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, Jun 21 2007

MATHEMATICA

Table[FromDigits[Most[IntegerDigits[n]]], {n, 0, 110}] (* Harvey P. Dale, Sep 09 2016 *)

PROG

(PARI) a(n)=if(n<0, 0, n\10)

(PARI) { for (n=0, 1000, write("b059995.txt", n, " ", n\10); ) } \\ Harry J. Smith, Jul 01 2009

(Sage) [floor(n/5)-floor(n/10) for n in xrange(-5, 98)] # Zerinvary Lajos, Dec 02 2009

CROSSREFS

Cf. A004526, A054899.

Sequence in context: A111852 A133880 A226233 * A132272 A179051 A054899

Adjacent sequences:  A059992 A059993 A059994 * A059996 A059997 A059998

KEYWORD

base,easy,nonn

AUTHOR

Henry Bottomley, Mar 12 2001

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy .

Last modified February 20 02:07 EST 2018. Contains 299357 sequences. (Running on oeis4.)