OFFSET
1,11
COMMENTS
If n is a convenient number (A000926), then a(n) = 1.
m is also the lowest nonzero integer such that m^2 can be generated by using all the inequivalent primitive quadratic forms of discriminant = -4n.
FORMULA
a(n)=sqrt(A232530(n)).
EXAMPLE
For n = 59, all primes p such that p such that p is a quadratic residue (mod 4*n) and p-n is a quadratic residue (mod 4*n) are either of the form x^2+59*y^2 or 4*x^2+2*x*y+15*y^2 or 3*x^2+2*x*y+20*y^2 or 5*x^2+2*x*y+12*y^2 or 7*x^2+4*x*y+9*y^2.
We have (6^2)*(x^2+59*y^2) = (6*x)^2+59*(6*y)^2,
(6^2)*(4*x^2+2*x*y+15*y^2) = (12*x+3*y)^2 + 59*(3*y)^2,
(6^2)*(7*x^2+4*x*y+9*y^2) = (4*x+18*y)^2 + 59*(2*x)^2,
(6^2)*(3*x^2+2*x*y+20*y^2) = (7*x+22*y)^2 + 59*(x-2*y)^2,
(6^2)*(5*x^2+2*x*y+12*y^2) = (11*x+14*y)^2 + 59*(x-2*y)^2.
So, m = 6 satisfies this condition for n = 59: for all primes p such that p is a quadratic residue (mod 4*n) and p-n is a quadratic residue (mod 4*n), (m^2)*p can be written as x^2+n*y^2.
And m = 6 is the smallest value of m to satisfy this condition. So, a(59) = 6.
CROSSREFS
KEYWORD
nonn,uned
AUTHOR
V. Raman, Nov 25 2013
STATUS
approved