OFFSET
1,1
COMMENTS
After 1 or 2 initial terms, respectively, the same as A102041. - R. J. Mathar, Aug 30 2008
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (2,-2,2,-1).
FORMULA
G.f.: x*(-5*x^4-2*x^3+8*x^2+9)/((x-1)^2*(x^2+1)). - Charles R Greathouse IV, Oct 04 2011
a(n) = 10+(1-i/2)*(-i)^n+(1+i/2)*i^n+5*n for n>1, where i = sqrt(-1). - Colin Barker, Oct 19 2015
EXAMPLE
34 + 4 = 38, 38 + 8 = 46.
MATHEMATICA
NestList[#+Last[IntegerDigits[#]]&, 9, 60] (* Harvey P. Dale, Sep 19 2011 *)
PROG
(PARI) Vec(x*(-5*x^4-2*x^3+8*x^2+9)/((x-1)^2*(x^2+1))+O(x^99)) \\ Charles R Greathouse IV, Oct 04 2011
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Samantha Stones (devilsdaughter2000(AT)hotmail.com), Dec 25 2004
EXTENSIONS
Formula adjusted for offset 1.
STATUS
approved