Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A049074
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A049074 Ulam's conjecture (steps to return n to 1 after division by 2, and, if needed, multiplication by 3 with 1 added). +0
2
8, 3, 49, 7, 36, 55, 288, 15, 339, 46, 259, 67, 119, 302, 694, 31, 214, 357, 519, 66, 148, 281, 633, 91, 658, 145, 101440, 330, 442, 724, 101104, 63, 841, 248, 540, 393, 535, 557, 2344, 106, 101331, 190, 1338, 325, 497, 679, 100979, 139, 806, 708, 1130, 197 (list; graph; listen)
OFFSET

1,1

REFERENCES

Appeared in School Science and Mathematics in 1982.

FORMULA

n=n+1:a=n\x=n/2\if int(x)=x then e=e+1:n=x:s=s+n: if n=1 then print s+t+a:e=0:o=0:s=0:t=0:n=a:return to n=n+1\if int(x)<>x then o=o+1:y=n*3+1:n=y:t=t+n: if n=1 then print s+t+a:e=0:o=0:s=0:t=0:n=a:return to n=n+1:else return to x=n/2

EXAMPLE

Beginning at n=1, algorithm produces s+t+a=8

CROSSREFS

Cf. A049067.

Sequence in context: A065530 A137481 A004734 this_sequence A038281 A131502 A100253

Adjacent sequences: A049071 A049072 A049073 this_sequence A049075 A049076 A049077

KEYWORD

easy,nonn

AUTHOR

Enoch Haga (Enokh(AT)comcast.net)

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 September 7 23:08 EDT 2008. Contains 143486 sequences.


AT&T Labs Research