OFFSET
0,2
MATHEMATICA
a[0] = 1; a[n_] := a[n] = If[IntegerQ[ 5a[n - 1]/2 ], 5a[n - 1]/2, If[IntegerQ[ Floor[5a[n - 1]/2]/2 ], Floor[5a[n - 1]/2], Ceiling[5a[n - 1]/2]]]
NestList[If[EvenQ[#], (5#)/2, Round[(5#)/2]]&, 1, 30] (* Harvey P. Dale, Dec 23 2011 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Joel B. Lewis, Jul 18 2008
STATUS
approved