OFFSET
1,2
COMMENTS
As n increases, the ratios of consecutive terms settle into an approximate 2-cycle with a(n)/a(n-1) bounded above and below by 1/9*(329+104*sqrt(10)) and 1/9*(89+28*sqrt(10)) respectively.
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,1442,-1442,-1,1).
FORMULA
G.f.: x(1+11*x-604*x^2+49*x^3+3*x^4) / ((1-x)*(1-38*x+x^2)*(1+38*x+x^2)).
a(n) = 1442*a(n-2)-a(n-4)-540.
a(n) = a(n-1)+1442*a(n-2)-1442*a(n-3)-a(n-4)+a(n-5).
a(n) = 1/80*((sqrt(10)-(-1)^n)*(5-sqrt(10))* (3+sqrt(10))^(2*n-1)-(sqrt(10)+(-1)^n)*(5+sqrt(10))*(3-sqrt(10))^(2*n-1)+30).
a(n) = ceiling(1/80*(sqrt(10)-(-1)^n)*(5-sqrt(10))*(3+sqrt(10))^(2*n-1))
EXAMPLE
The second decagonal number that is also heptagonal is A001107(12)=540. Hence a(2)=12.
MATHEMATICA
LinearRecurrence[{1, 1442, -1442, -1, 1}, {1, 12, 850, 16761, 1225159}, 17]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ant King, Jan 03 2012
STATUS
approved
