Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A080828
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A080828 Triangle read by rows in which n-th row gives trajectory of n (omitting n itself) under the map k -> 3k-1 if k odd, k -> k/2 if k even, stopping when reach 1, 5 or 17. +0
2
1, 8, 4, 2, 1, 2, 1, 14, 7, 20, 10, 5, 3, 8, 4, 2, 1, 20, 10, 5, 4, 2, 1, 26, 13, 38, 19, 56, 28, 14, 7, 20, 10, 5, 5, 32, 16, 8, 4, 2, 1, 6, 3, 8, 4, 2, 1, 38, 19, 56, 28, 14, 7, 20, 10, 5, 7, 20, 10, 5, 44, 22, 11, 32, 16, 8, 4, 2, 1, 8, 4, 2, 1, 50, 25, 74, 37, 110, 55, 164, 82, 41, 122 (list; graph; listen)
OFFSET

2,2

COMMENT

The 3x-1 problem terminates at 4,2,1 or 20,10,5 or 68,34,17. The x-1 problem terminates at 4,2,1 or 3,2,1.

EXAMPLE

5->14->7->20->10->5 so 5th row is 14,7,20,10,5.

PROGRAM

(PARI) x3nm1(n, p) = { print1(1" "); for(x=1, n, p1 = x; while(p1>1, if(p1%2==0, p1/=2, p1 = p1*p-1; ); print1(p1" "); if(p1 == 5 || p1 == 17, break); ) ) }

CROSSREFS

Sequence in context: A154527 A145435 A133839 this_sequence A131916 A131606 A033328

Adjacent sequences: A080825 A080826 A080827 this_sequence A080829 A080830 A080831

KEYWORD

easy,nonn,tabf

AUTHOR

Cino Hilliard (hillcino368(AT)gmail.com), Mar 27 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 November 24 23:16 EST 2009. Contains 167481 sequences.


AT&T Labs Research