1,2

If there are several solutions with the minimal number of terms, choose the one with the greatest leading term, then the greatest second term, etc.

It can be shown that such a representation exists for all n.

Table of n, a(n) for n=1..48.

1=1

2=2

3=3

4=3+1

5=5

6=5+1

7=7

8=5+3

9=7+2

10=7+3

11=11

12=7+5

Sequence in context: A085667 A220114 A035516 * A079950 A174953 A298599

Adjacent sequences: A120425 A120426 A120427 * A120429 A120430 A120431

nonn,tabf

N. J. A. Sloane, based on a posting by Henry Baker to the math-fun list, Jul 22 2006

approved