login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A118389
Least triangular number T(k) that contains the consecutive digits of n, where T(k) = k*(k+1)/2.
2
0, 1, 21, 3, 45, 15, 6, 78, 28, 91, 10, 1128, 120, 136, 1431, 15, 1653, 171, 1830, 190, 120, 21, 1225, 231, 2415, 253, 1326, 276, 28, 2926, 300, 231, 325, 3321, 2346, 351, 36, 378, 3828, 3916, 406, 741, 4278, 435, 4465, 45, 465, 4753, 1485, 496, 2850, 351, 528
OFFSET
0,3
COMMENTS
The indices, k, of these T(k) for each n are at A118388.
EXAMPLE
====================
n k T(k)
====================
0 0 0
1 1 1
2 6 21
3 2 3
4 9 45
5 5 15
6 3 6
7 12 78
8 7 28
9 13 91
10 4 10
MATHEMATICA
nn = 68; t = Table[0, {nn}]; n = 0; found = 0; While[found < nn, n++; k = n (n + 1)/2; d = IntegerDigits[k]; s = Sort[FromDigits /@ Flatten[Table[Partition[d, i, 1], {i, Length[d]}], 1]]; i = 1; While[i <= Length[s] && s[[i]] <= nn, If[t[[s[[i]]]] == 0, t[[s[[i]]]] = k; found++]; i++]]; t = Join[{0}, t] (* T. D. Noe, Sep 03 2013 *)
CROSSREFS
Sequence in context: A040433 A317321 A080472 * A077690 A018855 A349873
KEYWORD
base,easy,nonn
AUTHOR
Jonathan Vos Post, Apr 26 2006
EXTENSIONS
Corrected by T. D. Noe, Sep 03 2013
STATUS
approved