login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A064168 Sum of numerator and denominator in n-th harmonic number, 1 + 1/2 + 1/3 +...+ 1/n. 4
2, 5, 17, 37, 197, 69, 503, 1041, 9649, 9901, 111431, 113741, 1506353, 1532093, 1556117, 3157279, 54394463, 18358381, 352893319, 71354639, 24031221, 24266365, 563299563, 1704771547, 42976237267, 43319457067, 392849685203, 395718022103, 11556136074187 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

Numerator and denominator in definition have no common factors >1.

LINKS

Table of n, a(n) for n=1..29.

Brian Hayes, A Tantonalizing Problem

EXAMPLE

The 3rd harmonic number is 11/6. So a(3) = 11 + 6 = 17.

MAPLE

h:= n-> numer(sum(1/k, k=1..n))+denom(sum(1/k, k=1..n)): seq(h(n), n=1..30);  # Emeric Deutsch, Nov 18 2004

MATHEMATICA

Numerator[#]+Denominator[#]&/@HarmonicNumber[Range[30]] (* Harvey P. Dale, Jul 04 2017 *)

PROG

(PARI) a(n) = my(h=sum(k=1, n, 1/k)); numerator(h) + denominator(h); \\ Michel Marcus, Sep 07 2019

CROSSREFS

Cf. A001008, A002805, A064167, A064169.

Sequence in context: A276460 A002496 A127436 * A118727 A183906 A042361

Adjacent sequences:  A064165 A064166 A064167 * A064169 A064170 A064171

KEYWORD

nonn,easy

AUTHOR

Leroy Quet, Sep 19 2001

EXTENSIONS

More terms from Emeric Deutsch, Nov 18 2004

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 10 14:07 EDT 2021. Contains 342845 sequences. (Running on oeis4.)