OFFSET
1,3
EXAMPLE
From Omar E. Pol, Jul 21 2009: (Start)
If written as a triangle:
1;
1,6;
1,6,6,36;
1,6,6,36,6,36,36,216;
1,6,6,36,6,36,36,216,6,36,36,216,36,216,216,1296;
1,6,6,36,6,36,36,216,6,36,36,216,36,216,216,1296,6,36,36,216,36,216,216,...
(End)
PROG
(Python 3.10+)
def A151784(n): return 6**(n.bit_count()-1) # Chai Wah Wu, Nov 15 2022
(PARI) a(n) = 6^(hammingweight(n)-1); \\ Michel Marcus, Nov 15 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jun 25 2009
STATUS
approved