OFFSET
0,1
COMMENTS
Any square mod 13 is one of 0, 1, 3, 4, 9, 10 or 12 (A010376) but not 2, and for this reason there are no squares in the sequence. Likewise, any cube mod 13 is one of 0, 1, 5, 8 or 12, therefore no term is a cube. - Bruno Berselli, Feb 19 2016
Numbers k such that GCD(2*k^5+1, 3*k^3+2) > 1. This GCD is 13 if k == 2 (mod 13), or 1 otherwise. - Philippe Deléham, Jan 16 2024
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,-1).
FORMULA
G.f.: (2+11*x)/(1-x)^2. - R. J. Mathar, Jan 05 2011
a(n) = 2*a(n-1) - a(n-2). - Vincenzo Librandi, Feb 25 2012
MAPLE
MATHEMATICA
Range[2, 1000, 13] (* Vladimir Joseph Stephan Orlovsky, May 29 2011 *)
LinearRecurrence[{2, -1}, {2, 15}, 30] (* Vincenzo Librandi, Feb 25 2012 *)
PROG
(Magma) I:=[2, 15]; [n le 2 select I[n] else 2*Self(n-1)-1*Self(n-2): n in [1..60]]; // Vincenzo Librandi, Feb 25 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Feb 10 2009
STATUS
approved