OFFSET
1,1
COMMENTS
a(n)/2 gives indices of pentagonal numbers which are also triangular.
a(n) itself gives x-values solving the Diophantine equation 2*x^2 + (x-1)^2 = y^2.
LINKS
Index entries for linear recurrences with constant coefficients, signature (15,-15,1).
FORMULA
a(n) = 15*a(n-1) - 15*a(n-2) + a(n-3).
a(n) = 14*a(n-1) - a(n-2) - 4. [Sture Sjöstedt, May 02 2011]
G.f.: 2*(1-3*x)/((1-x)*(1-14*x+x^2)). - Bruno Berselli, Nov 11 2011
MATHEMATICA
LinearRecurrence[{15, -15, 1}, {2, 24, 330}, 20] (* Harvey P. Dale, Mar 14 2016 *)
PROG
(PARI) Vec(2*(1-3*x)/((1-x)*(1-14*x+x^2)) + O(x^40)) \\ Michel Marcus, Nov 17 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Benoit Cloitre, Apr 15 2003
STATUS
approved