OFFSET
0,2
COMMENTS
A Pellian equation (Pell's equation). - Benoit Cloitre, Feb 03 2006
Numbers n such that 23*(n^2-1) is a square. - Vincenzo Librandi, Nov 13 2010
LINKS
Colin Barker, Table of n, a(n) for n = 0..594
Tanya Khovanova, Recursive Sequences
John Robertson, Home page.
Index entries for linear recurrences with constant coefficients, signature (48,-1).
FORMULA
a(0)=1, a(1)=24 then a(n) = 48*a(n-1)-a(n-2). - Benoit Cloitre, Feb 03 2006
G.f.: (1-24*x)/(1-48*x+x^2). - Philippe Deléham, Nov 18 2008
a(n) = T(n, 24) = (S(n, 48) - S(n-2, 48))/2, n >= 0, with Chebyshev's T- and S-polynomials (A049310 and A053120). - Wolfdieter Lang, Jul 02 2013
a(n) == 1 (mod 23). - Hugo Pfoertner, Feb 11 2024
MATHEMATICA
LinearRecurrence[{48, -1}, {1, 24}, 20] (* Harvey P. Dale, Aug 19 2022 *)
PROG
(PARI) g(n, k) = for(y=0, n, x=k*y^2+1; if(issquare(x), print1(floor(sqrt(x))", ")))
(PARI) a0=1; a1=24; for(n=2, 30, a2=48*a1-a0; a0=a1; a1=a2; print1(a2, ", ")) \\ Benoit Cloitre, Feb 03 2006
(PARI) Vec((1-24*x)/(1-48*x+x^2) + O(x^20)) \\ Colin Barker, Jun 13 2015
(Magma) [n: n in [1..10000000] |IsSquare(23*(n^2-1))]; // Vincenzo Librandi, Nov 13 2010
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, Feb 01 2006
EXTENSIONS
More terms from Benoit Cloitre, Feb 03 2006
More terms from Robert G. Wilson v, Mar 17 2006
STATUS
approved