|
|
A205539
|
|
Number of distinct values of Sum_{i=0..n} x(i)*binomial(n,i), where the x(i) have values in 0..4.
|
|
6
|
|
|
5, 9, 17, 33, 65, 129, 257, 513, 1025, 2049, 4089, 6705, 16327, 22689, 63573, 130389, 261393, 277569, 1029837, 993393, 3736239, 8378487, 16485497, 12937617, 49303463, 133933765, 258521683, 532893609, 1071289053, 666222975, 2514048099, 2149595937, 8785740659, 33471017703, 62738124385, 136742425621
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,1
|
|
COMMENTS
|
|
|
LINKS
|
|
|
MAPLE
|
local bni, T, i;
T:= {0};
for i from 0 to n do
bni:= binomial(n, i);
T:= map(t -> (t, t+bni, t+2*bni, t+3*bni, t+4*bni), T)
od:
nops(T);
end;
|
|
MATHEMATICA
|
a[n_] := a[n] = Module[{bni, T, i}, T = {0}; For[i = 0, i <= n, i++, bni = Binomial[n, i]; T = Union@ Flatten@ Map[{#, #+bni, #+2bni, #+3bni, #+4bni}&, T]]; Length[T]];
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|