OFFSET
1,1
EXAMPLE
a(1) = 9 since (a, b, c) = (9, 7, 1) is the smallest solution with c = A366862(1) = 1: 9*7 + 1 = 64, 9*1 + 7 = 16 = 7*1 + 9 are squares.
a(2) = 28 is in the sequence since (a, b, c) = (28, 9, 4) is the smallest solution with c = A366862(2) = 4.
a(3) = 52 is in the sequence since (a, b, c) = (52, 16, 9) is the smallest solution with c = A366862(3) = 9.
a(4) = 16 is in the sequence since (a, b, c) = (57, 49, 16) is the smallest solution with c = A366862(4) = 16.
a(5) = 12 is in the sequence since (a, b, c) = (73, 24, 12) is the smallest solution with c = A366862(5) = 12.
PROG
(PARI) S=[]; for(a=1, oo, for(b=2, a-1, for(c=1, b-1, issquare(a*b+c)&& issquare(a*c+b)&& issquare(b*c+a)&& (S=setunion(S, [c])) &&print1(a", "))))
CROSSREFS
KEYWORD
nonn
AUTHOR
M. F. Hasler, Oct 25 2023
STATUS
approved