OFFSET
1,3
COMMENTS
Inspired by (and program used from) A238334.
Note that (m^2+(m+1)^2), for m>0, always ends with 5. Any other patterns?
From Robert Israel, Dec 09 2024: (Start)
The last two digits of k^2 + (k+1)^2 (if more than 2 digits) are 01, 05, 13, 21, 25, 41, 45, 61, 65, 81, or 85. The only ones of these that don't contain the squares 0, 1, 4, or 25 are 65 and 85, so all terms k > 3 of this sequence have k^2 + (k+1)^2 ending in 65 or 85. (End)
LINKS
Robert Israel, Table of n, a(n) for n = 1..1000
EXAMPLE
1^2 + 2^2 = 5, 3^2 + 4^2 = 25, 6^2 + 7^2 = 85.
MAPLE
filter:= proc(m) local n, i, j, S;
n:= m^2 + (m+1)^2;
S:= {seq(seq(floor((n mod 10^i)/10^j), j=0..i-1), i=1 .. ilog10(n)+1)} minus {n};
not ormap(issqr, S);
end proc:
select(filter, [$0..20000]); # Robert Israel, Dec 09 2024
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Zak Seidov, Mar 07 2014
STATUS
approved