|
Search: id:A085068
|
|
|
| A085068 |
|
Number of steps for iteration of map x -> (4/3)*ceiling(x) to reach an integer > n when started at n, or -1 if no such integer is ever reached. |
|
+0 8
|
|
| 1, 3, 2, 1, 2, 9, 1, 8, 3, 1, 7, 2, 1, 2, 6, 1, 3, 4, 1, 5, 2, 1, 2, 3, 1, 6, 4, 1, 3, 2, 1, 2, 4, 1, 5, 3, 1, 4, 2, 1, 2, 4, 1, 3, 8, 1, 4, 2, 1, 2, 3, 1, 4, 7, 1, 3, 2, 1, 2, 7, 1, 4, 3, 1, 9, 2, 1, 2, 6, 1, 3, 6, 1, 5, 2, 1, 2, 3, 1, 6, 5, 1, 3, 2, 1, 2, 8, 1, 5, 3, 1, 5, 2, 1, 2, 5, 1, 3, 4, 1, 6
(list; graph; listen)
|
|
|
OFFSET
|
0,2
|
|
|
COMMENT
|
It is conjectured that an integer is always reached.
|
|
LINKS
|
J. C. Lagarias and N. J. A. Sloane, Approximate squaring (pdf, ps), Experimental Math., 13 (2004), 113-128.
|
|
MAPLE
|
f := x->(4/3)*ceil(x); g := proc(n) local t1, c; global f; t1 := f(n); c := 1; while not type(t1, 'integer') do c := c+1; t1 := f(t1); od; RETURN([c, t1]); end;
|
|
MATHEMATICA
|
f[n_] := Block[{c = 1, k = 4 n/3}, While[ ! IntegerQ@k, c++; k = 4 Ceiling@k/3]; c]; Table[f@n, {n, 0, 104}] (* Robert G. Wilson v *)
|
|
CROSSREFS
|
Cf. A085058, A085071, A085328, A085330, A083514.
Adjacent sequences: A085065 A085066 A085067 this_sequence A085069 A085070 A085071
Sequence in context: A048984 A136531 A127318 this_sequence A079587 A112745 A036585
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
njas, Aug 11 2003
|
|
|
Search completed in 0.002 seconds
|