A374805 a(n) is the smallest positive integer whose square can be represented as the sum of 3 distinct nonzero squares in exactly n ways, or -1 if no such number exists.
1, 7, 15, 23, 31, 21, 33, 39, 49, 45, 79, 57, 95, 103, 75, 69, 127, 87, 63, 151, 93, 167, 111, 123, 99, 187, 117, 105, 161, 241, 141, 135, 153, 247, 271, 283, 177, 183, 165, 275, 147, 171, 323, 219
Offset: 0
Examples
a(3) = 23: 23^2 = 3^2 + 6^2 + 22^2 = 3^2 + 14^2 + 18^2 = 6^2 + 13^2 + 18^2.
Extensions
a(35)-a(43) from Michael S. Branicky, Jul 21 2024