OFFSET
1,2
COMMENTS
At one time this expression was proposed (erroneously) as a formula for A007664.
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
MATHEMATICA
f[n_] := Floor[Sqrt[2*n] + 1/2]; a[n_] := Sum[ i*2^(i - 1), {i, 1, n}] - (f[n]*(f[n] + 1)/2 - n)*2^(f[n] - 1); Table[a[n], {n, 1, 25}] (* G. C. Greubel, Oct 14 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Feb 08 2008
STATUS
approved