A077339
Triangle in which n-th row contains the first n numbers beginning with n.
Original entry on oeis.org
1, 2, 20, 3, 30, 31, 4, 40, 41, 42, 5, 50, 51, 52, 53, 6, 60, 61, 62, 63, 64, 7, 70, 71, 72, 73, 74, 75, 8, 80, 81, 82, 83, 84, 85, 86, 9, 90, 91, 92, 93, 94, 95, 96, 97, 10, 100, 101, 102, 103, 104, 105, 106, 107, 108, 11, 110, 111, 112, 113, 114, 115, 116, 117, 118
Offset: 1
The triangle starts:
1;
2, 20;
3, 30, 31;
4, 40, 41, 42;
5, 50, 51, 52, 53;
6, 60, 61, 62, 63, 64;
7, 70, 71, 72, 73, 74, 75;
8, 80, 81, 82, 83, 84, 85, 86;
9, 90, 91, 92, 93, 94, 95, 96, 97;
10, 100, 101, 102, 103, 104, 105, 106, 107, 108;
11, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119;
12, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 1200; ...
-
A077339(m,n,p=1)={!n & n=m+(1-m=(sqrtint(8*m-7)+1)\2)*m\2; while(n>p,n-=p;p*=10);p*m+n-1} \\ returns the n-th number starting with m, allowing also n>m (useful for A077341 ff), or the m-th term of the sequence, if no 2nd arg is given. \\ - M. F. Hasler, Jan 07 2013
Original entry on oeis.org
1, 20, 31, 42, 53, 64, 75, 86, 97, 108, 119, 1200, 1301, 1402, 1503, 1604, 1705, 1806, 1907, 2008, 2109, 2210, 2311, 2412, 2513, 2614, 2715, 2816, 2917, 3018, 3119, 3220, 3321, 3422, 3523, 3624, 3725, 3826, 3927, 4028
Offset: 1
A077341
Triangle in which n-th row contains the first n numbers, not already present, that begin with n.
Original entry on oeis.org
1, 2, 20, 3, 30, 31, 4, 40, 41, 42, 5, 50, 51, 52, 53, 6, 60, 61, 62, 63, 64, 7, 70, 71, 72, 73, 74, 75, 8, 80, 81, 82, 83, 84, 85, 86, 9, 90, 91, 92, 93, 94, 95, 96, 97, 10, 100, 101, 102, 103, 104, 105, 106, 107, 108, 11, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 12
Offset: 1
Triangle begins:
1
2 20
3 30 31
4 40 41 42
5 50 51 52 53
...
-
{u=[];for(m=1,19,o=0;for(n=1,m,while(setsearch(u,a=A077339(m,n+o)),o++);u=setunion(u,Set(a));print1(a",")))} \\ M. F. Hasler, Jan 08 2013
Original entry on oeis.org
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 200, 21, 22, 23, 24, 25, 26, 27, 28, 29, 300, 310, 32, 33, 34, 35, 36, 37, 38, 39, 400, 410, 420, 43, 44, 45, 46, 47, 48, 49, 500, 510, 520, 530, 54, 55, 56, 57, 58, 59, 600, 610, 620, 630, 640, 65, 66, 67
Offset: 1
Showing 1-4 of 4 results.
Comments