OFFSET
1,2
COMMENTS
We write G12(r)=5*r^2-4*r and CG12(p)=6*p^2-6*p+1. A number has both properties iff there exist r and p such that 2*(5*r-2)^2=15*(2*p-1)^2+3. The Diophantine equation (2*X)^2=30*Y^2+6 gives 2 new sequences. We obtain also 2 new sequences with the indices given by r and p respectively.
LINKS
Index entries for linear recurrences with constant coefficients, signature (483,-483,1).
FORMULA
a(n+2)=482*a(n+1)-a(n)+312 ; a(n+1)=241*a(n)+156+44*(30*a(n)^2+39*a(n)+12)^0.5 ;
G.f.: (z+310*z^2+z^3)/((1-z)*(1-482*z+z^2)).
MATHEMATICA
LinearRecurrence[{483, -483, 1}, {1, 793, 382537}, 20] (* Harvey P. Dale, Aug 27 2020 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Richard Choulet, Oct 16 2007
STATUS
approved