A224447 Multiplicities for representations of n as primitive and distinct sums of three squares.
0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, 0, 2, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 2, 1, 0, 0, 1, 1, 0, 0, 1, 2, 0, 0, 2, 1, 0, 0, 0, 1, 1, 0, 2, 2, 0, 0, 3, 1, 0, 0, 2, 1, 0, 0, 1, 3, 1, 0, 2, 1, 0, 0, 1, 1, 1, 0, 2, 2, 0, 0, 3, 2, 1, 0, 1, 2, 0, 0, 1, 2, 0, 0, 4, 0, 0, 0, 2, 2, 1, 0, 2, 3, 0, 0, 2, 1, 1, 0, 2, 1, 0, 0, 1, 3, 0, 0, 3, 2, 0, 0, 2, 2
Offset: 0
Keywords
Examples
Denote a representation in question by an increasingly ordered triple [a, b, c]. The first nonnegative integer with a representation in question is n = 5 with a(5) = 1 because 5 has only one primitive representation (see A224444(5) = 1), namely [0, 1, 2] and the entries are distinct. a(6) = 0 because the only primitive representation (A224444(6) = 1) is [1, 1, 2], but the entries are not distinct. a(17) = 1 with the unique representation [0, 1, 4]. The primitive representation [2, 2, 3] (A224444(17) = 2) is excluded because it does not have distinct entries. a(26) = 2 with the primitive representations (A224444(26) = 2) given by [0, 1, 5] and [1, 3, 4] which both have distinct entries.
Links
- F. Halter-Koch, Darstellung natürlicher Zahlen als Summe von Quadraten, Acta Arith. 42 (1982) 11-20, pp. 13 and 11.
Programs
-
Mathematica
a[n_] := Select[ PowersRepresentations[n, 3, 2], Unequal @@ # && GCD @@ # == 1 &] // Length; Table[a[n], {n, 0, 130}] (* Jean-François Alcover, Apr 10 2013 *)
Formula
a(n) = k >= 1 if n, n >= 0, has k different representations as n = a^2 + b^2 + c^2, a, b and c integers, 0 <= a < b < c and gcd(a,b,c) = 1. If there is no such representation a(0) = 0.
Comments