A080480
Largest number formed by using all the digits (with multiplicity) of next n numbers.
Original entry on oeis.org
1, 32, 654, 98710, 5432111111, 987622111110, 87654322222222, 9654333333332210, 987544444443333210, 98765555555444443210, 9876666666665555543210, 988777777777776666543210, 99998888888888877654321100, 9999999998765544332211111110000000
Offset: 1
a(4) = 98710 formed by using digits of 7,8,9 and 10.
-
FromDigits[Sort[Flatten[IntegerDigits/@#],Greater]]&/@Table[ Reverse[ Range[ (n(n+1))/2+1,((n+1)(n+2))/2]],{n,0,15}] (* Harvey P. Dale, May 13 2017 *)
-
def a(n):
s = "".join(sorted("".join(map(str, range((n-1)*n//2+1, n*(n+1)//2+1)))))
return int("".join(sorted(s, reverse=True)))
print([a(n) for n in range(1, 15)]) # Michael S. Branicky, Jan 23 2021
More terms from Antonio G. Astudillo (afg_astudillo(AT)lycos.com), Apr 19 2003
A192392
Largest multiple of n which can be formed as concatenation of the next n numbers, {1+n(n-1)/2,...,n(n+1)/2} (written in decimal), or 0 if no such number exists.
Original entry on oeis.org
1, 32, 654, 97108, 1413121115, 212019181716, 28272625222324, 3635343331293032, 454443424140393837, 55545352514948474650, 6665646362616059585756, 787776757473727170696768, 91908988878685848382817980, 9998979695949392105104103101100102
Offset: 1
-
precperm(p)={ my(t); forstep( i=#p-1,1,-1, p[i]>p[i+1] && for( j=1,#t=vecsort( vecextract( p, 2^#p-2^(i-1) ),,4), t[j]A192392(n)={ my( d=vecsort( vector( n,i,Str( i+n*(n-1)/2 )),,4 ), t );
for( i=1,n!, eval(concat(d))%n || break; d=precperm(d)); eval(concat(d))}
A076069
Largest number formed as concatenation of a permutation of the n consecutive numbers 1+n(n-1)/2, ..., n(n+1)/2 (written in decimal).
Original entry on oeis.org
1, 32, 654, 98710, 1514131211, 212019181716, 28272625242322, 3635343332313029, 454443424140393837, 55545352515049484746, 6665646362616059585756, 787776757473727170696867, 91908988878685848382818079, 9998979695949392105104103102101100
Offset: 1
1, then a concatenation of a permutation of 2 and 3, then a concatenation of a permutation of 4, 5 and 6.
Definition modified to obtain a new sequence different from (earlier duplicate)
A080480. M. F. Hasler, Jun 29 2011.
A193380
A192392(n)/n = largest m such that m*n is a concatenation of the numbers n(n-1)/2+1,...,n(n+1)/2.
Original entry on oeis.org
1, 16, 218, 24277, 282624223, 35336530286, 4038946460332, 454417916411629, 50493713793377093, 5554535251494847465, 605967851146914507796, 65648063122810597558064, 7069922221437372952524460, 714212835424956578936007364364293
Offset: 1
Showing 1-4 of 4 results.
Comments