OFFSET
1,3
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
N. J. A. Sloane et al., Binary Quadratic Forms and OEIS (Index to related sequences, programs, references)
MATHEMATICA
lim=250; k=7; 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 *)
PROG
(PARI) is(n)=my(f=factor(n)); for(i=1, #f[, 1], if(kronecker(f[i, 1], 7)<0 && f[i, 2]%2, return(0))); n%4!=2 \\ Charles R Greathouse IV, Nov 18 2012
(Magma) [n: n in [0..230] | NormEquation(7, n) eq true]; // Vincenzo Librandi, Aug 31 2016
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
STATUS
approved