OFFSET
0,2
COMMENTS
All terms are even. Sequence is infinite. Corresponding squares are s^2 with s = 1, 11, 153, 2131, 29681, 413403, 5757961, 80198051, 1117014753, 15558008491, 216695104121, 3018173449203, 42037733184721, ... (see A122769).
Numbers m such that the distance from (0,0,-1) to (m,m,m) in R^3 is an integer. - James R. Buddenhagen, Jun 15 2013
Also n such that the sum of the pentagonal numbers P(n) and P(n+1) is equal to the sum of two consecutive triangular numbers. - Colin Barker, Dec 07 2014
LINKS
Colin Barker, Table of n, a(n) for n = 0..874
Index entries for linear recurrences with constant coefficients, signature (15,-15,1).
FORMULA
a(n) = ((b+1)*(7+4*b)^n - (b-1)*(7-4*b)^n - 2)/6, where b = sqrt(3).
a(n) = 14*a(n-1) - a(n-2) + 4, with a(0)=0, a(1)=6.
a(n) = 15*a(n-1)-15*a(n-2)+a(n-3). - Colin Barker, Dec 07 2014
G.f.: 2*x*(x-3) / ((x-1)*(x^2-14*x+1)). - Colin Barker, Dec 07 2014
MATHEMATICA
LinearRecurrence[{15, -15, 1}, {0, 6, 88}, 25] (* Paolo Xausa, Jul 19 2024 *)
PROG
(PARI) concat(0, Vec(2*x*(x-3) / ((x-1)*(x^2-14*x+1)) + O(x^100))) \\ Colin Barker, Dec 07 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Zak Seidov, Oct 21 2006
EXTENSIONS
More terms from Colin Barker, Dec 07 2014
STATUS
approved