editing
approved
editing
approved
proposed
approved
editing
proposed
Robert Israel, <a href="/A308064/b308064.txt">Table of n, a(n) for n = 1..10000</a>
N:= 100:
V:= Vector(N):
for a from 1 to floor(sqrt(N/3)) do
for b from a to floor(sqrt((N-a^2)/2)) do
R:= map(c -> a^2 + b^2 + c^2, [$b .. floor(sqrt(min(a^2+b^2-1, N-a^2-b^2)))]);
V[R]:= map(`+`, V[R], 1);
od od:
convert(V, list); # Robert Israel, Jan 01 2020
approved
editing
proposed
approved
editing
proposed
Number of triangles with perimeter n whose sides side lengths are square numbers.
allocated for Wesley Ivan HurtNumber of triangles with perimeter n whose sides are square numbers.
0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 2, 0
1,99
Table[Sum[Sum[(Floor[Sqrt[i]] - Floor[Sqrt[i - 1]]) (Floor[Sqrt[k]] - Floor[Sqrt[k - 1]]) (Floor[Sqrt[n - k - i]] - Floor[Sqrt[n - k - i - 1]])*Sign[Floor[(i + k)/(n - i - k + 1)]], {i, k, Floor[(n - k)/2]}], {k, Floor[n/3]}], {n, 100}]
Cf. A010052.
allocated
nonn
Wesley Ivan Hurt, May 10 2019
approved
editing
allocated for Wesley Ivan Hurt
recycled
allocated