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!)
A066508 a(n) = floor(Sum_{i=1..n} (1/i)^(1/i)). 1
1, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 10, 10, 11, 12, 13, 14, 15, 16, 16, 17, 18, 19, 20, 21, 22, 23, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 57, 58, 59, 60, 61, 62, 63, 64 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
a(n) = floor(Sum_{i=1..n} (1/i)^(1/i)) = floor(Sum_{i=1..n} i^(-1/i)).
LINKS
FORMULA
a(n) = n - log(n)^2/2 + O(1) as n -> infinity. - Robert Israel, Jan 05 2016
EXAMPLE
For a(5), 1^1 + (1/2)^(1/2) + (1/3)^(1/3) + (1/4)^(1/4) + (1/5)^(1/5) ~= 3.8323545. Therefore a(5) = 3.
MAPLE
A066508:=n->floor(add((1/i)^(1/i), i=1..n)): seq(A066508(n), n=1..100); # Wesley Ivan Hurt, Jan 03 2016
MATHEMATICA
Table[ Floor[ Sum[ (1/i)^(1/i), {i, n} ]], {n, 75} ]
Floor[Accumulate[With[{nn=75}, (1/Range[nn])^(1/Range[nn])]]] (* Harvey P. Dale, Oct 05 2022 *)
PROG
(PARI) { s=0; for (n=1, 1000, s+=(1/n)^(1/n); write("b066508.txt", n, " ", floor(s)) ) } \\ Harry J. Smith, Feb 19 2010
(PARI) a(n) = floor(sum(i=1, n, (1/i)^(1/i))); \\ Michel Marcus, Jan 04 2016
CROSSREFS
Sequence in context: A214449 A118168 A083920 * A319413 A307727 A309081
KEYWORD
nonn,easy
AUTHOR
Robert G. Wilson v, Jan 04 2002
EXTENSIONS
Example corrected by Harry J. Smith, Feb 19 2010
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 24 00:30 EDT 2024. Contains 371917 sequences. (Running on oeis4.)