A374285
a(n) is the smallest nonnegative integer k where there are exactly n nonnegative integer solutions to x^2 + 2*y^2 = k.
Original entry on oeis.org
5, 0, 9, 81, 297, 891, 1683, 8019, 5049, 18513, 15147, 88209, 31977, 1185921, 136323, 166617, 95931, 7144929, 351747
Offset: 0
-
b(n, k) = sum(i=0, sqrtint(n), sum(j=0, sqrtint(n\k), i^2+k*j^2==n));
a(n, k=2) = my(cnt=0); while(b(cnt, k)!=n, cnt++); cnt;
A374288
a(n) is the smallest nonnegative integer k where there are exactly n nonnegative integer solutions to x^2 + 5*y^2 = k.
Original entry on oeis.org
2, 0, 9, 81, 189, 441, 1449, 10206, 3969, 12789, 13041, 35721, 30429, 194481, 117369, 115101, 186921, 2893401, 273861
Offset: 0
-
b(n, k) = sum(i=0, sqrtint(n), sum(j=0, sqrtint(n\k), i^2+k*j^2==n));
a(n, k=5) = my(cnt=0); while(b(cnt, k)!=n, cnt++); cnt;
Showing 1-2 of 2 results.
Comments