OFFSET
1,1
COMMENTS
Equivalently, numbers a such that there exists 1 < b < a such that ab+1 and a+b are perfect squares.
When a = b+2, then ab+1 = (b+1)^2, so there remains only the condition that a+b = 2b+2 = (2m)^2 for some integer m >= 2 (since the square must be even and b > c = 1, so m > 1). Thus, all a = 2*m^2 + 1 with m >= 2, A058331(2..) = 9, 19, 33, ..., are in this sequence.
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10000
Wendy Appleby, Find all triples..., Number Theory group on LinkedIn.com, Oct 25 2023.
EXAMPLE
a(1) = 9 is in the sequence because for b = 7, we have that ab+1 = 8^2 and a+b = 4^2 both are squares (whence ab+c, ac+b and bc+a are squares for c = 1).
a(2) = 12 is in the sequence because for b = 4, we have ab+1 = 7^2 and a+b = 4^2 both squares.
PROG
(PARI) is(n)=for(b=2, n-1, issquare(n*b+1)&&issquare(n+b)&&return(1))
select(is, [1..456])
(PARI) is(n) = {
for(i = sqrtint(n+2)+!issquare(n+2), sqrtint(2*n-1),
if(issquare(n*(i^2-n)+1),
return(1)
)
);
0
} \\ faster than prog above \\ David A. Corneth, Jan 17 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
M. F. Hasler, Oct 25 2023
STATUS
approved