OFFSET
1,1
EXAMPLE
The sequence of pairs starts:
(2, 4), (2, 6), (3, 6), (2, 8), (4, 6), (2, 10), (3, 9), (4, 8), (2, 12), (4, 10),(6, 8), (3, 12), (5, 10), (6, 9), (2, 14), (4, 12), (6, 10), (2, 16), (3, 15),(4, 14), (6, 12), (8, 10), ...
PROG
(Julia)
function A354266List(upto)
L = Int[]
for n in 1:upto
d = div(isqrt(8n + 1) - 1, 2)
s = n - div(d*(d + 1), 2)
t = d - s
if s > 0 && s < t && gcd(s, t) > 1
push!(L, s)
push!(L, t)
end
end
L end
println(A354266List(303))
CROSSREFS
KEYWORD
nonn
AUTHOR
Peter Luschny, May 21 2022
STATUS
approved