OFFSET
1,4
COMMENTS
a(n-1) <= a(n) <= n^2.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..200
EXAMPLE
For n=4 we have a(n)=2; 1 is impossible because 1*4=2*2; on the other hand the products of any two numbers from 2,3,4,5 are 4,6,8,9,10,12,15,16,20,25, which are all distinct.
PROG
(Sage)
def find_start(n):
q=1
while True:
L={}
advance=True
for i in range(n-1):
for j in range(i, n):
if (q+i)*(q+j) not in L:
L[(q+i)*(q+j)]=1
else:
advance=False
break
if not advance:
break
else:
return q
q+=1
CROSSREFS
KEYWORD
nonn
AUTHOR
Steve Butler, Mar 13 2014
STATUS
approved