cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A223730 Multiplicities for representations of positive numbers n as primitive sums of three nonzero squares.

This page as a plain text file.
%I A223730 #20 Mar 20 2024 09:40:25
%S A223730 0,0,1,0,0,1,0,0,1,0,1,0,0,1,0,0,1,1,1,0,1,1,0,0,0,1,1,0,1,1,0,0,2,1,
%T A223730 1,0,0,2,0,0,2,1,1,0,1,1,0,0,1,1,2,0,1,2,0,0,2,0,2,0,1,2,0,0,1,3,1,0,
%U A223730 2,1,0,0,1,2,1,0,2,1,0,0,2,1,2,0,0,3,0,0,3,2,1,0,1,2,0,0,1,2,2,0,3,2,0,0,2,1,2,0,1,3,0,0,2,3,1,0,2,2,0,0,2,2,2,0,2,2,0,0,4,0,3,0,1,4
%N A223730 Multiplicities for representations of positive numbers n as primitive sums of three nonzero squares.
%C A223730 Primitive sums of three nonzero squares a^2 + b^2 + c^2, with positive integers a, b and c, satisfy gcd(a,b,c) = 1. (coprimality of the three squares).
%C A223730 a(n) gives the number of different representations (multiplicities) of the number n >= 1 as primitive sums of three nonzero squares. If a(n) = 0 there is no such representation for n. The numbers n with a(n) not vanishing are given in A223731. The ones with a(n) = 1, 2 and 3 are in A223732, A223733 and A223734, respectively.
%C A223730 For the multiplicities of the positive numbers as sums of three nonzero squares see A025427. The numbers with A025427(n) >= 1 are given in A000408.
%C A223730 A corollary in the Halter-Koch reference (Korollar 1. (b) on p. 13) states for the positive numbers n, not 0, 4, 7 (mod 8) [otherwise n cannot be a primitive sum of three nonzero squares; see p. 11, the r_3(n) formula]:  n is not the sum of three positive coprime squares if and only if n is from the set T := {1, 2, 5, 10, 13, 25, 37, 58, 85, 130, ?}, with ? possibly a number >= 5*10^10 . Therefore a(n) = 0 if and only if n >= 1 is of the form mentioned in this corollary: i)  0, 4, 7 (mod 8) or ii) in the set T.
%C A223730 For representations of n as a sum of three nonzero squares see the Grosswald reference, Theorem 7, p. 79. There also the above mentioned set T appears and for the Conjecture it is assumed that the extra eleventh member of T is absent.
%D A223730 E. Grosswald, Representations of Integers as Sums of Squares. Springer-Verlag, NY, 1985.
%H A223730 Alois P. Heinz, <a href="/A223730/b223730.txt">Table of n, a(n) for n = 1..10000</a>
%H A223730 F. Halter-Koch, <a href="http://matwbn.icm.edu.pl/ksiazki/aa/aa42/aa4212.pdf">Darstellung natürlicher Zahlen als Summe von Quadraten</a>, Acta Arith. 42 (1982) 11-20.
%F A223730 a(n) = 0 if there is no representation of n as a primitive sum of three nonzero squares. a(n) = k >= 1 if there are k distinct such representations for n.
%e A223730 a(12) = 0 because the only representation of 12 as a sum of three nonzero squares is given by [2,2,2], i.e., 12 = 2^2 + 2^2 + 2^2, but this is not a primitive sum because gcd(2,2,2) = 2, not 1. Such a situation appears for n = 12, 24, 36, 44, 48, 56, 68, 72, 76, 84, 88, 96, ... For these numbers A025427(n) = 1 and a(n) = 0.
%e A223730 a(27) = 1 because the only primitive representation of 27 as a sum of three nonzero squares is denoted by [1,1,5]. The representation [3,3,3] is not primitive.
%p A223730 with(numtheory):
%p A223730 b:= proc(n, i, t, s) option remember;
%p A223730       `if`(n=0, `if`(t=0 and s={}, 1, 0), `if`(i=1, `if`(t=n, 1, 0),
%p A223730       `if`(t*i^2<n, 0, b(n, i-1, t, select(x->x<i, s))+
%p A223730       `if`(i^2>n, 0, b(n-i^2, i, t-1, `if`(s={1}, factorset(i),
%p A223730        s intersect factorset(i)))))))
%p A223730     end:
%p A223730 a:= n-> b(n, isqrt(n), 3, {1}):
%p A223730 seq(a(n), n=1..200);  # _Alois P. Heinz_, Apr 06 2013
%t A223730 a[n_] := Select[ PowersRepresentations[n, 3, 2], Times @@ # != 0 && GCD @@ # == 1 &] // Length; Table[a[n], {n, 1, 134}] (* _Jean-François Alcover_, Jun 21 2013 *)
%Y A223730 Cf. A223731, A025427 (non-primitive case), A223732, A223733, A223734.
%K A223730 nonn
%O A223730 1,33
%A A223730 _Wolfdieter Lang_, Apr 04 2013