OFFSET
1,1
COMMENTS
The sequence is unbounded and all terms from the third onward are 0 modulo 6.
FORMULA
MAPLE
M:=[0, 2]: isElement := proc(n) global M; local b, j, k; b:=true; for j from 1 to nops(M)-1 do for k from j+1 to nops(M) do if M[j] = n mod M[k] then b:=false; break; fi od od; return b end: for z to 1 do for n from 3 while M[ -1]-M[ -2]<1000 do if isElement(n) then M:=[op(M), n] fi od od; M; SDM:=[]: sdmax:=0: for z to 1 do for k from 1 to nops(M)-1 do sd:=M[k+1]-M[k]; if sd>sdmax then sdmax:=sd; SDM:=[op(SDM), [k, M[k+1], sd]] fi od od; SDM; map(proc(z) SDM[z, 3] end, [$1..nops(SDM)]);
CROSSREFS
KEYWORD
nonn
AUTHOR
Walter Kehowski, Oct 15 2005
STATUS
approved