OFFSET
0,2
COMMENTS
Another interpretation: A real number with an infinitesimally small difference from the integer 1 which is used to test the precision of calculating devices. - John W. Nicholson, Feb 01 2012
a(n) is also the number of n-digit positive repdigit numbers (A010785). - Stefano Spezia, Aug 15 2020
LINKS
FORMULA
a(0) = 0, a(n) = 9 for n > 0.
a(n) = 9 * A057427(n).
From Robert Israel, Dec 16 2014: (Start)
G.f.: 9*x/(1 - x).
E.g.f.: 9*(exp(x) - 1). (End)
EXAMPLE
Viewed as a real number: For a TI-89, entering 1.-10^-12 yields .999999999999; however, 1.-10^-13 yields 1. - John W. Nicholson, Feb 01 2012
MATHEMATICA
a[n_] := Mod[9 n - 1, 9] + 1; a[0] = 0; Array[a, 105, 0] (* Robert G. Wilson v, Sep 20 2010 *)
PadRight[{0}, 120, 9] (* Harvey P. Dale, May 03 2019 *)
PROG
(PARI) a(n)=if(n, 9, 0) \\ Charles R Greathouse IV, Jan 04 2013
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Odimar Fabeny, Sep 10 2010
EXTENSIONS
More terms from Robert G. Wilson v, Sep 20 2010
Definition changed by N. J. A. Sloane, Feb 04 2012
STATUS
approved