OFFSET
1,2
COMMENTS
Contains A028504. - Robert Israel, May 25 2017
Except for the first term, the first digit of each term is either 3, 4, 5, 8 or 9. - Chai Wah Wu, May 25 2017
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..300 (terms n = 1..164 from Robert Israel)
EXAMPLE
32760 is in the sequence because 32760 = 181^2-1 and its reverse 6723 = 82^2 - 1.
MAPLE
r:= n-> (s-> parse(cat(s[-i]$i=1..length(s))))(""||n):
select(x-> issqr(r(x)+1), [n^2-1$n=1..10000])[]; # Alois P. Heinz, May 24 2017
MATHEMATICA
Select[Range[0, 10^6], Function[n, Times @@ Boole@ Map[IntegerQ@ Sqrt@ # &, {n + 1, FromDigits@ Reverse@ IntegerDigits@ n + 1}] == 1]] (* Michael De Vlieger, May 24 2017 *)
Select[Range[0, 10^6], AllTrue[{Sqrt[#+1], Sqrt[IntegerReverse[#]+1]}, IntegerQ]&] (* The program generates the first 23 terms of the sequence. *) (* Harvey P. Dale, Dec 24 2025 *)
PROG
(PARI) isok(n) = issquare(n+1) && issquare(fromdigits(Vecrev(digits(n)))+1); \\ Michel Marcus, May 24 2017
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Bruno Berselli, May 24 2017
STATUS
approved
