|
|
A048175
|
|
Size of range 1..m generatable from the digits of an n-digit integer and + - x /.
|
|
2
|
|
|
|
OFFSET
|
2,1
|
|
COMMENTS
|
Let k be an n-digit positive integer, compute all integers that can be formed by combining the digits of k using + - x / and parentheses (but no digit concatenation, exponentiation, or other operators). Let r(k) be the largest range 1..m present in the output set. Then a(n) is the max of r(k) over all n-digit numbers.
|
|
LINKS
|
|
|
EXAMPLE
|
a(3)=10 because 1..10 can be made from the digits of 124 ( 1=4-2-1, 2=4-(2/1), 3=4-2+1, 4=4/(2-1), 5=4+2-1, 6=4+(2/1), 7=4+2+1, 8=4*2/1, 9=4*2+1, 10=(4+1)*2 ) and no 3-digit number gives a larger range.
a(5)=192 achieved by 45678 (and its permutations), a(6)=963 achieved by 256789. - Sean A. Irvine, Jun 03 2021
|
|
PROG
|
(Python) # see linked program
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,hard,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|