OFFSET
1,32
MATHEMATICA
r[n_] := Reduce[x > 0 && y > 0 && x^2 + 7 y^2 == n, Integers];
a[n_] := Which[rn = r[n]; rn === False, 0, Head[rn] === And, 1, Head[rn] === Or, Length[rn], True, -1];
Table[a[n], {n, 1, 87}] (* Jean-François Alcover, Jun 24 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
V. Raman, Sep 08 2012
STATUS
approved