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”).

A175186
a(1)=0. For 1<= n <= 2^m, m>=0, a(n+ 2^m) = a(n)+n.
2
0, 1, 1, 3, 1, 3, 4, 7, 1, 3, 4, 7, 6, 9, 11, 15, 1, 3, 4, 7, 6, 9, 11, 15, 10, 13, 15, 19, 19, 23, 26, 31, 1, 3, 4, 7, 6, 9, 11, 15, 10, 13, 15, 19, 19, 23, 26, 31, 18, 21, 23, 27, 27, 31, 34, 39, 35, 39, 42, 47, 48, 53, 57, 63, 1, 3, 4, 7, 6, 9, 11, 15, 10, 13, 15, 19, 19, 23, 26, 31
OFFSET
1,4
COMMENTS
a(2^m) = 2^m -1.
MATHEMATICA
f[l_]:=Join[l, l+Range[Length[l]]]; Nest[f, {0}, 7] (* Ray Chandler, Mar 04 2010 *)
CROSSREFS
Sequence in context: A162932 A216036 A008924 * A021323 A284619 A147549
KEYWORD
easy,nonn
AUTHOR
Leroy Quet, Mar 01 2010
EXTENSIONS
Extended by Ray Chandler, Mar 04 2010
STATUS
approved