login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A067439 a(n) = sum of all the remainders when n is divided by positive integers less than and coprime to n. 6
0, 0, 1, 1, 4, 1, 8, 6, 9, 5, 22, 8, 28, 15, 19, 20, 51, 20, 64, 30, 39, 33, 98, 33, 83, 56, 89, 55, 151, 46, 167, 95, 107, 95, 150, 71, 233, 120, 172, 106, 297, 92, 325, 163, 186, 162, 403, 144, 358, 189, 279, 217, 505, 173, 375, 230, 342, 276, 635, 165, 645, 338 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,5
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
a(8) = 6. The remainders when 8 is divided by the coprime numbers 1, 3, 5 and 7 are 0, 2, 3 and 1, whose sum = 6.
MATHEMATICA
a[n_] := Sum[If[GCD[i, n]>1, 0, Mod[n, i]], {i, 1, n-1}]
Table[Total[Mod[n, #]&/@Select[Range[n-1], CoprimeQ[#, n]&]], {n, 70}] (* Harvey P. Dale, May 22 2012 *)
PROG
(PARI) a(n)=sum(i=1, n-1, if(gcd(n, i)==1, n%i)) \\ Charles R Greathouse IV, Jul 17 2012
CROSSREFS
Sequence in context: A143820 A259930 A103553 * A116924 A327957 A335707
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Jan 29 2002
EXTENSIONS
Edited by Dean Hickerson, Feb 15 2002
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 16:22 EDT 2024. Contains 371780 sequences. (Running on oeis4.)