OFFSET
1,3
COMMENTS
Norms of numbers in Z[sqrt(-6)]. - Alonso del Arte, Sep 23 2014
It seems that a positive integer n is in this sequence if and only if the p-adic order ord_p(n) of n is even for any prime p with floor(p/12) odd, and the number of prime divisors p == 5 or 11 (mod 24) with ord_p(n) odd has the same parity with ord_2(n) + ord_3(n). - Zhi-Wei Sun, Mar 24 2018
REFERENCES
N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
Zak Seidov, Table of n, a(n) for n = 1..2064 (terms <= 10000).
Leonhard Euler, E388 Vollständige Anleitung zur Algebra, Zweiter Theil, reprinted in: Opera Omnia. Teubner, Leipzig, 1911, Series (1), Vol. 1, p. 425.
MAPLE
N:= 10^4: # to get all terms <= N
{seq(seq(a^2 + 6*b^2, a = 0 .. floor(sqrt(N-6*b^2))), b = 0 .. floor(sqrt(N/6)))};
# for Maple 11, or earlier, uncomment the next line
# sort(convert(%, list)); # Robert Israel, Sep 24 2014
MATHEMATICA
lim = 10^4; k = 6; Union@Flatten@Table[x^2 + k * y^2, {y, 0, Sqrt[lim/k]}, {x, 0, Sqrt[lim - k * y^2]}] (* Zak Seidov, Mar 30 2011 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved