login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A345030
a(n) = Sum_{k=1..n} n^(floor(n/k) - 1).
4
1, 3, 11, 70, 633, 7821, 117709, 2097684, 43047545, 1000010125, 25937439391, 743008621422, 23298085496173, 793714780786669, 29192926036832363, 1152921504875352376, 48661191876077295937, 2185911559749718388655, 104127350297928227579629
OFFSET
1,2
LINKS
FORMULA
a(n) = [x^n] (1/(1 - x)) * Sum_{k>=1} x^k * (1 - x^k)/(1 - n*x^k).
MATHEMATICA
a[n_] := Sum[n^(Floor[n/k] - 1), {k, 1, n}]; Array[a, 20] (* Amiram Eldar, Jun 06 2021 *)
PROG
(PARI) a(n) = sum(k=1, n, n^(n\k-1));
CROSSREFS
Diagonal of A345032.
Sequence in context: A009103 A018192 A056665 * A378047 A127716 A035378
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Jun 06 2021
STATUS
approved