OFFSET
1,2
COMMENTS
Patterned, or almost palindromic, numbers obtained by modification of "half-repdigit" numbers. a[n]=A*(((100^n-1)/9)+B*(10^n - 1)/9)/18, where A=1, B=8-A=7. For example, n = 20: a[20] = 1111111111111111111188888888888888888888/18 = 61728395061728395066049382716049382716, an "almost-palindromic-number". - Labos Elemer, Oct 28 2004
n is "almost palindromic" if digitlist-Rev[digitlist], besides zeros, contains +1 or -1 in "regular" positions. - Labos Elemer, Oct 28 2004
LINKS
Index entries for linear recurrences with constant coefficients, signature (111,-1110,1000).
FORMULA
G.f.: x*(-1+45*x) / ( (x-1)*(100*x-1)*(10*x-1) ). - R. J. Mathar, Mar 10 2011
MATHEMATICA
f[x_] := 1*((100^x-1)/9) + 7*(10^x-1)/9 Table[f[w], {w, 1, 20}]/18 (* Labos Elemer, Oct 28 2004 *)
PROG
(PARI) Vec(x*(-1+45*x)/((x-1)*(100*x-1)*(10*x-1))+O(x^99)) \\ Charles R Greathouse IV, Jun 23 2020
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Daniel Lawson (dlawson(AT)cats.ucsc.edu)
EXTENSIONS
Edited by N. J. A. Sloane at the suggestion of Andrew S. Plewe, May 31 2007
STATUS
approved