OFFSET
1,2
FORMULA
T(n,k)=n*A054523(n,k). - R. J. Mathar, Nov 01 2007
T(n,k) = Sum_{y=1..n} Sum_{x=1..n} [GCD(f(x,y), n) = k], where f(x,y) = x - y. - Mats Granvik, Oct 08 2023
EXAMPLE
First few rows of the triangle are:
1;
2, 2;
6, 0, 3;
8, 4, 0, 4;
20, 0, 0, 0, 5;
12, 12, 6, 0, 0, 6;
42, 0, 0, 0, 0, 0, 7;
...
MAPLE
A054523 := proc(n, k) if n mod k = 0 then numtheory[phi](n/k) ; else 0 ; fi ; end: A127649 := proc(n, k) A054523(n, k)*n ; end: for n from 1 to 20 do for k from 1 to n do printf("%d, ", A127649(n, k)) ; od: od: # R. J. Mathar, Nov 01 2007
CROSSREFS
KEYWORD
AUTHOR
Gary W. Adamson, Jan 22 2007
EXTENSIONS
More terms from R. J. Mathar, Nov 01 2007
STATUS
approved