Given a number n
and an upper limit l
list the numbers that can be created by multiplying two or more numbers consisting of only sevens of length n
or less that are less than l
. A161145 is close to this challenge, however, you will NOT be including the 7, 77, 777, 7777, 77777, etc..
Examples
n=anything, l<49
would result in:
[]
n=1, l=49
would result in:
7*7=49
f(1,49)=[49]
n=1, l=343
would result in:
7*7 =49
7*7*7 =343
f(1,343)=[49,343]
n=2,l=6000
would result in:
7*7 =49
7*7*7 =343
7*7*7*7=2401
7*77 =539
7*7*77 =3773
77*77 =5929
f(2,6000)=[49,343,539,2401,3773,5929]
n=3, l=604000
would result in:
[49, 343, 539, 2401, 3773, 5439, 5929, 16807, 26411, 38073, 41503, 59829, 117649, 184877, 266511, 290521, 418803, 456533, 603729]
Etc...
Rules
- You do not have to output intermediate steps, this was done for clarity.
- Output can be as an array or separated by any character (even newlines).
- Output must be in numerical order, lowest to highest.
- To make the title relevant, highest
n
that must be handled isn=77
(if you can't handle that high, note why - language restrictions are acceptable, laziness is not). This limitation is to hinder those looking to build the entire superset in memory. - If TIO cannot run
n=77
for your code, explain what specs were required to achieven=77
. - For a product to be valid it must consist of at least 2 numbers.
- This is code-golf lowest byte-count will be deemed victorious.
- You may choose the list to contain items less than
l
or less than/equal tol
. - BONUS: If your code is exactly 77 bytes, kudos from me; worthless, I know.
n
or less that are less thanl
" \$\endgroup\$n=77
andl=7**7**7
, for example? \$\endgroup\$