|
|
|
|
1, 2, 4, 5, 7, 11, 12, 14, 18, 26, 27, 29, 33, 41, 57, 58, 60, 64, 72, 88, 120, 121, 123, 127, 135, 151, 183, 247, 248, 250, 254, 262, 278, 310, 374, 502, 503, 505, 509, 517, 533, 565, 629, 757, 1013, 1014, 1016, 1020, 1028, 1044, 1076, 1140, 1268, 1524, 2036
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
FORMULA
|
a(n) = 2^t + 2^(n-t*(t-1)/2) - t - 2, where t = floor(sqrt(2*n) + 1/2), n>=1.
|
|
EXAMPLE
|
For n=10, a(10) = 1 + 1 + 2 + 1 + 2 + 4 + 1 + 2 + 4 + 8 = 26.
|
|
MATHEMATICA
|
|
|
PROG
|
(PARI) for(n=1, 100, t=floor(sqrt(2*n)+1/2); print1(2^t+2^(n-t*(t-1)/2)-t-2, ", "));
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|