login
Numbers of form x^2 + 8 y^2.
2

%I #15 Sep 08 2022 08:44:45

%S 0,1,4,8,9,12,16,17,24,25,32,33,36,41,44,48,49,57,64,68,72,73,76,81,

%T 88,89,96,97,100,108,113,121,128,129,132,136,137,144,152,153,164,169,

%U 172,176,177,192,193,196,200,201,204,209,216,225,228,233,236,241,249,256,257

%N Numbers of form x^2 + 8 y^2.

%H Vincenzo Librandi, <a href="/A020671/b020671.txt">Table of n, a(n) for n = 1..10000</a>

%H N. J. A. Sloane et al., <a href="https://oeis.org/wiki/Binary_Quadratic_Forms_and_OEIS">Binary Quadratic Forms and OEIS</a> (Index to related sequences, programs, references)

%t lim=260; k=8; Union@Flatten@Table[x^2 + k y^2, {y, 0, Sqrt[lim/k]}, {x, 0, Sqrt[lim-k y^2]}] (* _Vincenzo Librandi_, Aug 31 2016 *)

%o (Magma) [n: n in [0..230] | NormEquation(8, n) eq true]; // _Vincenzo Librandi_, Aug 31 2016

%Y Cf. A007519.

%K easy,nonn

%O 1,3

%A _David W. Wilson_