login
A348262
Number of 1's required to build n using + and ^
2
1, 2, 3, 4, 5, 6, 7, 5, 5, 6, 7, 8, 9, 10, 11, 6, 7, 8, 9, 10, 11, 12, 13, 11, 7, 8, 6, 7, 8, 9, 10, 7, 8, 9, 10, 8, 9, 10, 11, 12, 12, 13, 12, 13, 13, 14, 15, 13, 9, 10, 11, 12, 13, 12, 13, 14, 14, 14, 13, 14, 15, 16, 14, 7, 8, 9, 10, 11, 12, 13, 14, 12, 12, 13, 14, 15, 16, 17
OFFSET
1,2
FORMULA
a(n) = (A213924(n) + 1)/2.
EXAMPLE
11+111++^ is a minimal-length RPN formula with value 8, using just these operators. It contains five occurrences of the symbol "1". Hence, a(8) = 5.
CROSSREFS
Cf. A213924 (expression-length complexity with the same set {1,+,^}).
Cf. A025280 (operand complexity (minimum number of ones) for {1,+,*,^}).
Sequence in context: A355261 A353897 A366905 * A038389 A058223 A245355
KEYWORD
nonn
AUTHOR
Glen Whitney, Oct 09 2021
STATUS
approved