|
|
A022819
|
|
a(n) = floor(1/(n-1) + 2/(n-2) + 3/(n-3) + ... + (n-1)/1).
|
|
7
|
|
|
0, 0, 1, 2, 4, 6, 8, 11, 13, 16, 19, 22, 25, 28, 31, 34, 38, 41, 44, 48, 51, 55, 59, 62, 66, 70, 74, 78, 81, 85, 89, 93, 97, 101, 106, 110, 114, 118, 122, 126, 131, 135, 139, 144, 148, 152, 157, 161, 166, 170, 174, 179, 183, 188, 193, 197, 202, 206, 211, 216
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,4
|
|
COMMENTS
|
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
a(2) = floor(1/1) = 1;
a(3) = floor(1/2 + 2/1) = floor(5/2) = 2;
a(4) = floor(1/3 + 2/2 + 3/1) = floor(26/6) = 4.
|
|
MATHEMATICA
|
Join[{0}, Floor[Accumulate[HarmonicNumber[Range[0, 60]]]]] (* Harvey P. Dale, Sep 16 2019 *)
|
|
PROG
|
(Haskell)
import Data.Ratio ((%))
a022819 n = floor $ sum $ zipWith (%) [1 .. n-1] [n-1, n-2 .. 1]
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|