OFFSET
1,1
COMMENTS
Conjecture: For no n in the sequence 36*n^2+72*n+35 = (6*n+5)*(6*n+7) is of the form p*(p+2), where p and p+2 are primes.
The conjecture is evident, it can be proved as in A169599. [Bruno Berselli, Jan 07 2013]
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (1,1,-1).
FORMULA
a(n) = (46*n + 7*(-1)^n - 27)/4. - Vincenzo Librandi, Jan 06 2013, modified Jul 07 2015
a(n) = a(n-1) + a(n-2) - a(n-3). - Vincenzo Librandi, Jan 06 2013
G.f.: x*(3+15*x+5*x^2) / ( (1+x)*(x-1)^2 ). - R. J. Mathar, Jul 07 2015
MAPLE
MATHEMATICA
Select[Range[624], MemberQ[{3, 18}, Mod[#, 23]]&] (* Ray Chandler, Jul 08 2015 *)
LinearRecurrence[{1, 1, -1}, {3, 18, 26}, 55] (* Ray Chandler, Jul 08 2015 *)
Rest[CoefficientList[Series[x*(3+15*x+5*x^2)/((1+x)*(x-1)^2), {x, 0, 55}], x]] (* Ray Chandler, Jul 08 2015 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Dec 03 2009
EXTENSIONS
Added leading terms. Clarified comment. - R. J. Mathar, Jul 07 2015
STATUS
approved