OFFSET
1,1
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..10000
N. J. A. Sloane, Catalog of Toothpick and Cellular Automata Sequences in the OEIS
FORMULA
a(n) = A048883(n), except a(n) = A048883(n) - (n+1)/2 if n is a power of 2 minus 1. - Omar E. Pol, Jan 06 2014
EXAMPLE
From Omar E. Pol, Jan 01 2014: (Start)
Written as an irregular triangle in which row lengths is A000079 the sequence begins:
2;
3,7;
3,9,9,23;
3,9,9,27,9,27,27,73;
3,9,9,27,9,27,27,81,9,27,27,81,27,81,81,227;
3,9,9,27,9,27,27,81,9,27,27,81,27,81,81,243,9,27,27,81,27, 81,81,243,27,81,81,243,81,243,243,697;
(End)
MATHEMATICA
A160727[n_]:=3^DigitCount[n, 2, 1]-If[IntegerQ[Log2[n+1]], (n+1)/2, 0]; Array[A160727, 100] (* Paolo Xausa, Sep 01 2023 *)
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Omar E. Pol, Jun 13 2009
EXTENSIONS
a(11)-a(58) from M. F. Hasler, Dec 03 2012
a(59)-a(68) from Omar E. Pol, Jan 06 2014
STATUS
approved