OFFSET
0,2
LINKS
T. D. Noe, Table of n, a(n) for n = 0..1000
Vadym Kurylenko, Thin Simplices via Modular Arithmetic, arXiv:2404.03975 [math.CO], 2024. See p. 33.
FORMULA
a(n) = number of triples (i, j, k) with i+j+k = n and gcd(i, j, k) = 1.
a(n) = Sum_{d|n} mu(n/d)*(d+1)*(d+2)/2. G.f.: Sum_{k>0} mu(k)/(1-x^k)^3. - Vladeta Jovovic, Dec 22 2002
MAPLE
A048240 := proc(n) local ans, i, j, k; ans := 0; for i from n by -1 to 0 do for j from n by -1 to 0 do k := n - i - j; if 0 <= k and k <= n and gcd(gcd(i, j), k) = 1 then ans := ans + 1; fi; od; od; RETURN(ans); end;
MATHEMATICA
a[n_] := Sum[ MoebiusMu[n/d]*(d+1)*(d+2)/2, {d, Divisors[n]}]; a[0] = 1; Table[a[n], {n, 0, 51}] (* Jean-François Alcover, Jun 14 2012, after Vladeta Jovovic *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jurjen N.E. Bos, N. J. A. Sloane, Robin Trew (trew(AT)hcs.harvard.edu)
STATUS
approved