Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A085068
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
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

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified October 9 14:06 EDT 2008. Contains 144831 sequences.


AT&T Labs Research