OFFSET
1,2
LINKS
K. D. Bajpai, Table of n, a(n) for n = 1..55
EXAMPLE
a(4) = 28 = 7 * (7 + 1) / 2, which is 7th triangular number with sum of digits = 2 + 8 = 10. a(5) = 66 = 11 * (11 + 1) / 2, which is 11th triangular number with sum of digits = 6 + 6 = 12. Since 12 > 10, 28 and 66 are in list. - K. D. Bajpai, Sep 04 2014
MAPLE
dig := X->convert((convert(X, base, 10)), `+`); T := k->k*(k+1)/2; S := k->seq(dig(T(i)), i=1..k-1); seq(`if`(n>1 and dig(T(n))>max(S(n)), T(n), printf("")), n=1..2000);
MATHEMATICA
t = {}; s = 0; Do[If[(x = Total[IntegerDigits[y = n*(n + 1)/2]]) > s, AppendTo[t, y]; s = x], {n, 120000}]; t (* Jayanta Basu, Aug 06 2013 *)
PROG
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy, Mar 06 2002
EXTENSIONS
More terms from Francois Jooste (phukraut(AT)hotmail.com), Mar 10 2002
More terms from Sascha Kurz, Mar 27 2002
a(31) to a(33) from K. D. Bajpai, Sep 04 2014
a(34) to a(36) from Robert Israel, Sep 04 2014
STATUS
approved