OFFSET
1,1
COMMENTS
Numbers n such that A053186(n) is a positive square. - Michel Marcus, Oct 23 2015
Numbers of the form a^2 + b^2 where a >= 1 and 1 <= b^2 <= 2a. - Robert Israel, Oct 23 2015
Numbers n such that A053610(n) = 2. - Thomas Ordowski, May 22 2016
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
For n=5, the largest square less than 5 is 4, and the difference between 4 and 5 is 1, which is also square.
MAPLE
N:= 1000: # to get all terms <= N
sort([seq(seq(a^2 + b^2, b=1..min(floor(sqrt(2*a)), floor(sqrt(N-a^2)))), a=1..floor(sqrt(N-1)))]); # Robert Israel, Oct 23 2015
MATHEMATICA
Select[Range@ 305, And[IntegerQ@ Sqrt[# - Floor[Sqrt@ #]^2], ! IntegerQ@ Sqrt@ #] &] (* Michael De Vlieger, Oct 23 2015 *)
PROG
(PARI) isok(n) = (d = (n - sqrtint(n)^2)) && issquare(d); \\ Michel Marcus, Oct 23 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Eli Jaffe, Oct 22 2015
EXTENSIONS
More terms from Michel Marcus, Oct 23 2015
STATUS
approved