OFFSET
0,2
COMMENTS
Previous name: Palindromic sequence whose n-th term digits sum to 2n.
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (0,11,0,-10).
FORMULA
a(n) = 10^(n/2)*(31*sqrt(10)/180 + 11/9 - (31*sqrt(10)/180 - 11/9)*(-1)^n) - (-1)^n/2 - 35/18;
G.f.: x*(2+22*x+11*x^2) / ( (x-1)*(1+x)*(10*x^2-1) ). - R. J. Mathar, Nov 27 2014
E.g.f.: (220*(cosh(sqrt(10)*x) - cosh(x)) + 31*sqrt(10)*sinh(sqrt(10)*x) - 130*sinh(x))/90. - Stefano Spezia, Feb 21 2024
MATHEMATICA
LinearRecurrence[{0, 11, 0, -10}, {0, 2, 22, 33}, 30] (* Paolo Xausa, Feb 22 2024 *)
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Paul Barry, May 15 2004
STATUS
approved