A331753 Let m(k) be the index of the largest triangular number <= k; then a(n) is the smallest number k that can be written as the sum of three triangular numbers if the largest is the (m(k)-n)-th triangular number, but no larger.
20, 50, 176, 110, 578, 614, 1163, 1070, 5135, 9503, 14648, 7928, 6035, 18653, 22130, 119204, 18128, 68258, 57335, 304799, 84725, 1024532, 215928, 692858, 688850, 637853, 736835, 1406105, 1801547, 1987469, 3673403, 654155, 8576861, 808718, 810146, 21515948
Offset: 1
Keywords
Examples
The largest triangular number <= 20 is T(5) = 5*6/2 = 15, and 20 cannot be expressed as the sum of 3 triangular numbers T1 + T2 + T3 if T1=15, but at T1 = T(5-1) = T(4) = 4*5/2 = 10, 20 can be expressed as T(4) + T(4) + T(0) = 10 + 10 + 0, and 20 is the smallest number with this property, so a(1)=20. The largest triangular number <= 50 is T(9) = 9*10/2 = 45, and 50 can be expressed as T1 + T2 + T3 neither with T1 = T(9) = 45 nor with T1 = T(9-1) = T(8) = 36; however, at T1 = T(9-2) = T(7) = 28, 50 can be expressed as T(7) + T(6) + T(1) = 28 + 21 + 1, and 50 is the smallest number with this property, so a(2)=50.
Comments