OFFSET
1,2
COMMENTS
Unlike A000926, this sequence is infinite. The first term not in A000926 is a(37) = 100. - Ivan Neretin, Jul 29 2015
LINKS
Robert Israel, Table of n, a(n) for n = 1..4000
MAPLE
N:= 1000: # to get all terms <= N
Allowed:= {$1..N}:
for count from 1 while Allowed <> {} do
a:= min(Allowed);
A[count]:= a;
Allowed:= Allowed minus{a, seq(seq(A[i]*A[j]+(A[i]+A[j])*a, j=1..i-1), i=1..count-1)};
od:
seq(A[i], i=1..count-1); # Robert Israel, Aug 11 2015
PROG
(PARI) oka(va, nv) = {for (i=1, nv, for (j=i+1, nv, for (k=j+1, nv, if (va[nv] == va[j]*va[k] + va[k]*va[i] + va[i]*va[j], return (0)); ); ); ); return (1); }
finda(va) = {na = vecmax(va) + 1; va = concat(va, na); while(! oka(va, #va), va[#va] = na++); na; }
lista(nn) = {va = [1]; print1(1, ", "); for (n=1, nn, na = finda(va); print1(na, ", "); va = concat(va, na); ); va; } \\ Michel Marcus, Aug 10 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from Jud McCranie
STATUS
approved