OFFSET
1,2
COMMENTS
Another version of A010766.
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..5050
FORMULA
From Franklin T. Adams-Watters, Jan 28 2006: (Start)
T(n,k) = Sum_{i=1..k} A077049(n,i).
G.f.: (1/(1-x))*Sum_{k>0} x^k*y^k/(1-x^k) = (1/(1-x))*Sum_{k>0} x^k * y / (1 - x^k y) = (1/(1-x)) * Sum_{k>0} x^k * Sum_{d|k} y^d = A(x,y)/(1-x) where A(x,y) is the g.f. of A077049. (End)
T(n,k) = floor((n + 1 - k) / k). - Reinhard Zumkeller, Apr 13 2012
MATHEMATICA
t[n_, k_] := Quotient[n, k]; Table[t[n-k+1, k], {n, 1, 14}, {k, 1, n}] // Flatten (* Jean-François Alcover, Nov 21 2013 *)
PROG
(Haskell)
a003988 n k = (n + 1 - k) `div` k
a003988_row n = zipWith div [n, n-1..1] [1..n]
a003988_tabl = map a003988_row [1..]
-- Reinhard Zumkeller, Apr 13 2012
CROSSREFS
KEYWORD
AUTHOR
EXTENSIONS
More terms from James A. Sellers
STATUS
approved