OFFSET
1,3
FORMULA
EXAMPLE
a(8) = 7 since the relative primes of 8 are (1, 3, 5, 7). a(8) = d(1) + d(3) + d(5) + d(7) = 1 + 2 + 2 + 2. Or, a(8) = 7 = (1, 0, 1, 0, 1, 0, 1, 0) dot (1, 2, 2, 3, 2, 4, 2, 4), where (1, 0, 1, 0, 1, 0, 1, 0) = row 8 of triangle A054521 and d(n) = (1, 2, 2, 3, 2, 4, 2, 4, 3, 4, 2,...).
a(7) = 14 = (1, 1, 1, 1, 1, 1, 0) dot (1, 2, 2, 3, 2, 4, 2) = (d(1) + d(2) + d(3) + d(4) + d(5) + d(6)).
MAPLE
A143615 := proc(n)
local a, m;
a := 0 ;
for m from 1 to n do
if gcd(m, n) = 1 then
a := a+numtheory[tau](m) ;
end if;
end do:
a ;
end proc: # R. J. Mathar, Aug 08 2012
CROSSREFS
KEYWORD
nonn
AUTHOR
Gary W. Adamson, Aug 27 2008
EXTENSIONS
More terms from Naohiro Nomoto, Aug 05 2012
STATUS
approved