OFFSET
1,3
FORMULA
EXAMPLE
The positive integers that are coprime to 12 and are <= 12 are 1,5,7,11. So a(12) = 1*1 + 2*5 + 3*7 + 4*11 = 1+10+21+44 =76.
MAPLE
A126572 := proc(n, k) local a, i ; a := 1 ; for i from 1 to k do if i = k then RETURN(a) ; fi ; a := a+1 ; while gcd(a, n) <> 1 do a := a+1 ; od; od: end: A135324 := proc(n) add( k*A126572(n, k), k=1..numtheory[phi](n)) ; end: for n from 1 to 80 do printf("%d, ", A135324(n) ) ; od: # R. J. Mathar, Jan 30 2008
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Dec 06 2007
EXTENSIONS
More terms from R. J. Mathar, Jan 30 2008
STATUS
approved