OFFSET
1,3
COMMENTS
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..10000
EXAMPLE
n=17: 17 = 1+1+15 = 1+6+10. a(17) = max(1,15,6,10) = 15.
n=18: 18= 0+3+15 = 6+6+6. a(18) = max(0,3,15,6) = 15.
n=20: 20= 0+10+10 (one partitioning only), a(20)= max(0,10)=10.
n=21: 21= 1+10+10 = 0+0+21 = 0+6+15 = 3+3+15. a(21) = max(1,10,0,21,6,15,3) = 21.
MATHEMATICA
a[n_] := Max@ Flatten@ IntegerPartitions[ n, {3}, (# (# + 1)/2) & /@ Range[0, Sqrt[8*n + 1]/2]]; Array[a, 100] (* Giovanni Resta, May 12 2016 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Tanya Khovanova and R. J. Mathar, Dec 12 2009
STATUS
approved