login
a(0) = 1, a(n) = 3*A036987(n), n>1.
3

%I #9 Jul 07 2022 01:48:07

%S 1,3,0,3,0,0,0,3,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,

%T 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,

%U 0,0,0,0,0,0,0,0,0,0,0,0,0

%N a(0) = 1, a(n) = 3*A036987(n), n>1.

%C Row sums of number triangle A127801.

%H Antti Karttunen, <a href="/A127802/b127802.txt">Table of n, a(n) for n = 0..16384</a>

%o (Python)

%o def A127802(n): return 3*int(not(n&(n+1))) if n else 1 # _Chai Wah Wu_, Jul 06 2022

%Y Cf. A036987, A043529.

%K nonn

%O 0,2

%A _Paul Barry_, Jan 29 2007