Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A066773
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A066773 Smallest number which requires n^2 steps in the 3x+1 problem. +0
3
1, 2, 16, 12, 7, 98, 153, 169, 673, 350, 107, 129, 649, 2110, 4763, 6919, 6943, 158299, 71310, 724686, 845223, 665215, 2157291, 4468260, 5978623, 34385063, 21015006, 301695657, 489853918, 568097511, 418606034, 1208474114 (list; graph; listen)
OFFSET

0,2

COMMENT

The next term is >= 1410123943. - Larry Reeves (larryr(AT)acm.org), Apr 10 2002

LINKS

Eric Weisstein's World of Mathematics, Link to a section of The World of Mathematics

Jeffrey C. Lagarias, The 3x + 1 Problem and its Generalizations

Index entries for sequences related to 3x+1 (or Collatz) problem

EXAMPLE

a(3)=12 since the Collatz sequence is 12 -> 6 -> 3 -> 10 -> 5 -> 16 -> 8 -> 4 -> 2 -> 1 and the count of steps is 9.

MATHEMATICA

f[ n_ ] := Module[ {i = 0, m = n}, While[ m != 1, m = If[ OddQ[ m ], 3m + 1, m/2 ]; i++ ]; i ]; a = Table[ 0, {50} ]; Do[ m = Sqrt[ f[ n ] ]; If[ IntegerQ[ m ] && a[ [ m + 1 ] ] == 0, a[ [ m + 1 ] ] = n ] ], {n, 1, 10^6} ]; a

PROGRAM

(PARI) {sequence(n)= c=0; k=n; while(k>1, if(k%2==0, k=k/2, k=3*k+1); c=c+1; ); if(issquare(c), print(n, " ", c), ); }

CROSSREFS

Cf. A006577, A066905.

Sequence in context: A087251 A110008 A110875 this_sequence A138761 A075376 A032935

Adjacent sequences: A066770 A066771 A066772 this_sequence A066774 A066775 A066776

KEYWORD

nonn

AUTHOR

Randall L. Rathbun, Jan 17 2002

EXTENSIONS

Corrected and extended by Dean Hickerson (dean.hickerson(AT)yahoo.com) and Robert G. Wilson v (rgwv(AT)rgwv.com), Jan 18 2002

More terms from Larry Reeves (larryr(AT)acm.org), Apr 10 2002

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 December 8 08:31 EST 2009. Contains 170430 sequences.


AT&T Labs Research