OFFSET
1,1
COMMENTS
Only one term is a prime number (17). Are all others composite?
There is no prime other than 17 in the first 1 million terms. - Harvey P. Dale, Jan 07 2020
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,2,-2,-1,1).
FORMULA
From R. J. Mathar, Sep 25 2009: (Start)
a(n) = a(n-1) + 2*a(n-2) - 2*a(n-3) - a(n-4) + a(n-5).
a(n) = 2*n^2 + 6*n + 9/4 - 3*(-1)^n*(2*n+3)/4.
G.f.: x*(-14-3*x+x^3)/((1+x)^2 * (x-1)^3 ). (End)
Sum_{n>=1} 1/a(n) = 89/81 - (sqrt(2)+1)*Pi/9. - Amiram Eldar, Jul 26 2024
EXAMPLE
for k = 1,2,..., k(k+9)/8 is 5/4, 11/4, 9/2, 13/2, 35/4, 45/4, 14, 17,.. and the integer values out of these become the sequence.
MATHEMATICA
q=4; s=0; lst={}; Do[s+=((n+q)/q); If[IntegerQ[s], AppendTo[lst, s]], {n, 6!}]; lst
Select[Table[(n(n+9))/8, {n, 200}], IntegerQ] (* or *) Rest[Flatten[Table[ {9n+8n^2, 14+23n+8n^2}, {n, 0, 30}]]] (* or *) LinearRecurrence[{1, 2, -2, -1, 1}, {14, 17, 45, 50, 92}, 60] (* Harvey P. Dale, Jan 07 2020 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vladimir Joseph Stephan Orlovsky, Sep 24 2009
EXTENSIONS
Definition simplified by R. J. Mathar, Sep 25 2009
STATUS
approved