OFFSET
1,2
EXAMPLE
Smallest number not a factor of 30 is 4, so next term after 30 is (30/3)*4 = 40.
MAPLE
A133582 := proc(n) option remember ; local d ; if n = 1 then 1; else for d from 2 do if A133582(n-1) mod d <> 0 then RETURN( A133582(n-1)*d/(d-1) ) ; fi ; od; fi ; end: seq(A133582(n), n=1..40) ; # R. J. Mathar, Jan 07 2008
MATHEMATICA
a = {1, 2}; Do[i = 1; While[IntegerQ[a[[ -1]]/i], i++ ]; AppendTo[a, (i/(i - 1))*a[[ -1]]], {50}]; a (* Stefan Steinerberger, Dec 29 2007 *)
nxt[n_]:=Module[{d=First[Complement[Range[n], Divisors[n]]]}, d/(d-1)*n]; Join[{1, 2}, NestList[nxt, 3, 50]] (* Harvey P. Dale, Jul 10 2012 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
J. Lowell, Dec 26 2007
EXTENSIONS
More terms from Stefan Steinerberger, Dec 29 2007
STATUS
approved