Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A102722
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A102722 Given n, sum all division remainders {n/k}, with k=1,...,n. The value a(n) is given by the floor of that sum. Note that {x}:=x-[x]. +0
2
0, 0, 0, 0, 1, 0, 2, 1, 2, 2, 4, 2, 4, 4, 4, 4, 6, 4, 7, 5, 6, 7, 9, 6, 8, 9, 10, 8, 11, 8, 11, 10, 11, 13, 14, 10, 13, 14, 15, 13, 16, 13, 17, 16, 15, 17, 20, 16, 18, 17, 19, 18, 22, 20, 21, 19, 20, 22, 26, 19, 23, 25, 24, 23, 25, 23, 26, 26, 28, 26, 30, 23, 27, 29, 29, 29, 31, 29, 33 (list; graph; listen)
OFFSET

0,7

COMMENT

Conjecture: a(n) ~ (1-EulerGamma)n

FORMULA

Contribution from Barbarel Tres Mil (barbarel3000(AT)yahoo.es), Aug 25 2009: (Start)

a(n)=floor(n*H(n))-Sum_{1->n}(d(n)) ,where d(n) is the number of divisors of n, and H(n) is the nth Harmonic Number

a(n)=A052488(n)-A006218(n) (End)

EXAMPLE

a(5)= [{5/1}+{5/2}+{5/3}+{5/4}+{5/5}]=[0+0.5+0.6666+0.2+0]=[1.3666]=1 (division by 1 or by the number itself is to be avoided).

MATHEMATICA

Resto = Function[n, Sum[n/k - Floor[n/k], {k, 2, n - 1}]]; Floor[Map[Resto, Range[1, 1000]]]

Contribution from Barbarel Tres Mil (barbarel3000(AT)yahoo.es), Aug 25 2009: (Start)

Table[Floor[n*HarmonicNumber[n]] - Sum[DivisorSigma[0, k], {k, 1, n}], {n, 1, 200}]

Table[Floor[Sum[FractionalPart[n/k], {k, 1, n}]], {n, 1, 200}] (End)

CROSSREFS

a(n)=A052488(n)-A006218(n) [From Barbarel Tres Mil (barbarel3000(AT)yahoo.es), Aug 25 2009]

Sequence in context: A161833 A139318 A054541 this_sequence A020475 A131183 A133770

Adjacent sequences: A102719 A102720 A102721 this_sequence A102723 A102724 A102725

KEYWORD

easy,nonn

AUTHOR

Carlos Alves (cjsalves(AT)gmail.com), Feb 06 2005

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 29 12:46 EST 2009. Contains 167659 sequences.


AT&T Labs Research