|
|
A194154
|
|
All possible numbers of whole squares which can be contained inside a square drawn with all of its vertices on lattice points.
|
|
2
|
|
|
0, 1, 4, 5, 9, 12, 13, 16, 17, 20, 24, 25, 28, 33, 36, 37, 40, 41, 45, 49, 52, 53, 60, 61, 64, 65, 72, 73, 76, 80, 81, 84, 85, 92, 93, 100, 101, 104, 105, 108, 109, 112, 113, 116, 117, 121, 124, 125, 129, 132, 136, 137, 144, 145, 148, 149, 153, 156, 157, 160, 164, 169
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,3
|
|
LINKS
|
|
|
MATHEMATICA
|
nmax = 1000;
a1 = {};
a = 1;
While[
2 (a - 1)^2 <= nmax,
b = a;
While[
c = (a - 1)^2 + (b - 1)^2;
c <= nmax,
h = GCD[a, b];
c += 2 (h - 1);
If[c <= nmax, AppendTo[a1, c]];
b++;
];
a++;
];
a1 = Union[a1]
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|