OFFSET
1,3
FORMULA
G.f.: 9*x^3*(x+1) / ((3*x-1)*(3*x+1)*(10*x^2-1)). - Colin Barker, Feb 15 2013
For n > 1, a(n) = 9*10^(k-1) - 9^k, where k = ceiling(n/2). - Jon E. Schoenfield, Sep 14 2013
EXAMPLE
For length 3 we find nine numbers: 101, 202, ... 909, so a(3) = 9.
MATHEMATICA
nzp[n_]:=Module[{k=Ceiling[n/2]}, 9*10^(k-1)-9^k]; Array[nzp, 30] (* Harvey P. Dale, Jun 01 2019 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Patrick De Geest, Aug 15 1999
EXTENSIONS
More terms from Michael Lugo (mlugo(AT)thelabelguy.com), Dec 22 1999
Corrected by T. D. Noe, Nov 08 2006
STATUS
approved