OFFSET
2,1
LINKS
Seiichi Manyama, Rows n = 2..141, flattened
S. Mustonen, On lines and their intersection points in a rectangular grid of points [From Seppo Mustonen, Apr 18 2009]
Seppo Mustonen, On lines and their intersection points in a rectangular grid of points [Local copy]
FORMULA
T(n,k) = 1/2 (f(n, k+1) - 2 f(n, k) + f(n, k-1)) where f(n, k) = Sum_{-n < kx < n, -n < ky < n, gcd(x, y)=1} (n - |kx|)*(n - |ky|). [Seppo Mustonen, Apr 18 2009]
EXAMPLE
From Seiichi Manyama, Nov 26 2017: (Start)
The table starts:
n\k| 2 3 4 5 6 7 8
---+------------------------------
2 | 6;
3 | 12, 8;
4 | 48, 4, 10;
5 | 108 16, 4, 12;
6 | 248, 36, 4, 4, 14;
7 | 428, 64, 20, 4, 4, 16;
8 | 764, 100, 44, 4, 4, 4, 18; (End)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Franklin T. Adams-Watters, May 19 2006
EXTENSIONS
An incorrect formula removed by Seppo Mustonen, Apr 25 2009
STATUS
approved