OFFSET
1,2
LINKS
William A. Tedeschi, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
a(13) = 1 so a(14) = 14*1 = 14;
14 < 15 so a(15) = 14*15 = 210;
210 > 16 so a(16) = floor(210/16) = 13.
MATHEMATICA
next[{a_, b_}]:=Module[{c=a+1}, {c, If[b<c, b*c, Floor[b/c]]}]; Transpose[ NestList[next, {1, 1}, 65]][[2]] (* Harvey P. Dale, Oct 06 2011 *)
PROG
(Haskell)
a076039 n = a076039_list !! (n-1)
a076039_list = f 1 1 where
f n x = x' : f (n+1) x' where
x' = (if x < n then (*) else div) x n
-- Reinhard Zumkeller, Aug 24 2011
CROSSREFS
KEYWORD
AUTHOR
Amarnath Murthy, Oct 29 2002
EXTENSIONS
More terms from David Wasserman, Mar 13 2005
STATUS
approved