OFFSET
0,1
COMMENTS
Numbers n such that ((n^2 + 1)/10) is a square. - Vincenzo Librandi, Jan 02 2012
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (38,-1).
FORMULA
a(n) = (1/2)*((-3+sqrt(10))*(19+6*sqrt(10))^n + (-3-sqrt(10))*(19-6*sqrt(10))^n).
a(n) = -a(-n+1).
G.f.: -3*(1-39*x)/(1-38*x+x^2). - Bruno Berselli, Jan 03 2011
MATHEMATICA
LinearRecurrence[{38, -1}, {-3, 3}, 30] (* Harvey P. Dale, Jan 14 2015 *)
PROG
(Magma) [-3] cat [n: n in [0..10^7]|IsSquare((n^2+1)/10)]; // Vincenzo Librandi, Jan 02 2012
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Artur Jasinski, Feb 10 2010
STATUS
approved