The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A309394 Perimeters of integer-sided triangles whose side lengths are square numbers. 1
3, 9, 12, 19, 22, 27, 33, 34, 36, 41, 48, 51, 54, 57, 59, 66, 73, 75, 76, 77, 81, 86, 88, 97, 99, 101, 102, 107, 108, 110, 114, 121, 123, 129, 132, 134, 136, 137, 138, 144, 147, 149, 153, 162, 163, 164, 166, 170, 171, 177, 178, 179, 181, 187, 192, 194, 198 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
Wikipedia, Integer Triangle
MAPLE
N:= 1000: # to get all terms <= N
S:= {}:
for a from 1 to floor(sqrt(N/3)) do
for b from a to floor(sqrt((N-a^2)/2)) do
S:= S union map(c -> a^2 + b^2 + c^2, {$b .. floor(sqrt(min(a^2+b^2-1, N-a^2-b^2)))})
od od:
sort(convert(S, list)); # Robert Israel, Jan 01 2020
MATHEMATICA
Flatten[Table[If[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]}] > 0, n, {}], {n, 200}]]
CROSSREFS
Cf. A308064.
Sequence in context: A261953 A297001 A356220 * A285564 A140979 A096726
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Jul 28 2019
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 19 14:45 EDT 2024. Contains 372698 sequences. (Running on oeis4.)