0,5

Number of ways to write n as an ordered sum of 3 powers of 2. - Ilya Gutkovskiy, Feb 02 2021

Table of n, a(n) for n=0..104.

b:= proc(n, t) option remember; `if`(n=0, `if`(t=0, 1, 0),

`if`(t<1, 0, add(b(n-2^j, t-1), j=0..ilog2(n))))

end:

a:= n-> b(n, 3):

seq(a(n), n=0..104); # Alois P. Heinz, Feb 02 2021

Cf. A151758.

Sequence in context: A043551 A162888 A337402 * A008443 A196456 A196485

Adjacent sequences: A151756 A151757 A151758 * A151760 A151761 A151762

nonn

N. J. A. Sloane, Jun 22 2009

approved