OFFSET
1,6
EXAMPLE
For n=7, we can evaluate x^7 using only 4 operations in 6 ways:
x^2 = x * x ; x^3 = x * x^2 ; x^4 = x * x^3 ; x^7 = x^3 * x^4 (1 squaring)
x^2 = x * x ; x^3 = x * x^2 ; x^4 = x^2 * x^2 ; x^7 = x^3 * x^4 (2 squarings)
x^2 = x * x ; x^3 = x * x^2 ; x^5 = x^2 * x^3 ; x^7 = x^2 * x^5 (1 squaring)
x^2 = x * x ; x^3 = x * x^2 ; x^6 = x^3 * x^3 ; x^7 = x * x^6 (2 squarings)
x^2 = x * x ; x^4 = x^2 * x^2 ; x^5 = x * x^4 ; x^7 = x^2 * x^5 (2 squarings)
x^2 = x * x ; x^4 = x^2 * x^2 ; x^6 = x^2 * x^4 ; x^7 = x * x^6 (2 squarings)
The maximal number of squarings in these evaluation schemes is 2, and it is achieved by a(7) = 4 schemes.
CROSSREFS
KEYWORD
nonn
AUTHOR
Laurent Thévenoux and Christophe Mouilleron, Feb 23 2011
STATUS
approved