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!)
A268235 a(n) = Sum_{k=1..n} floor(n/k)*2^(k-1). 10
1, 4, 9, 20, 37, 76, 141, 280, 541, 1072, 2097, 4192, 8289, 16548, 32953, 65860, 131397, 262764, 524909, 1049736, 2098381, 4196560, 8390865, 16781696, 33558929, 67117460, 134226585, 268452580, 536888037, 1073775900, 2147517725, 4295034280, 8590002605, 17180002736, 34359872001, 68719743792 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
This is the "floor transform" of the powers of 2.
LINKS
FORMULA
a(n) ~ 2^n. - Vaclav Kotesovec, May 28 2021
From Seiichi Manyama, May 29 2021: (Start)
a(n) = Sum_{k=1..n} Sum_{d|k} 2^(d-1).
G.f.: (1/(1 - x)) * Sum_{k>=1} x^k/(1 - 2*x^k).
G.f.: (1/(1 - x)) * Sum_{k>=1} 2^(k-1) * x^k/(1 - x^k). (End)
a(n) = Sum_{k=1..n} (2^floor(n/k) - 1). - Ridouane Oudra, Feb 03 2023
MAPLE
# floor transform of a sequence
ft:=proc(a) local b, n, j, k; b:=[];
for n from 1 to nops(a) do j:=add(a[k]*floor(n/k), k=1..n); b:=[op(b), j]; od;
b; end:
ft([seq(2^i, i=0..50)]);
MATHEMATICA
Table[Sum[Floor[n/k] 2^(k - 1), {k, n}], {n, 36}] (* Michael De Vlieger, Feb 12 2017 *)
PROG
(PARI) a(n) = sum(k=1, n, (n\k)*2^(k-1)); \\ Michel Marcus, Feb 11 2017
(PARI) a(n) = sum(k=1, n, sumdiv(k, d, 2^(d-1))); \\ Seiichi Manyama, May 29 2021
(PARI) my(N=40, x='x+O('x^N)); Vec(sum(k=1, N, x^k/(1-2*x^k))/(1-x)) \\ Seiichi Manyama, May 29 2021
(PARI) my(N=40, x='x+O('x^N)); Vec(sum(k=1, N, 2^(k-1)*x^k/(1-x^k))/(1-x)) \\ Seiichi Manyama, May 29 2021
CROSSREFS
First differences give A034729. Cf. A000079.
Sequence in context: A009910 A060494 A049748 * A192956 A023607 A117074
KEYWORD
nonn
AUTHOR
EXTENSIONS
Definition corrected by Matthew House, Feb 11 2017
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 23 02:53 EDT 2024. Contains 371906 sequences. (Running on oeis4.)