|
Search: id:A005184
|
|
|
| A005184 |
|
Self-contained numbers: odd numbers n whose Collatz sequence contains a higher multiple of n. (Formerly M5220)
|
|
+0 4
|
| |
|
|
OFFSET
|
1,1
|
|
|
COMMENT
|
Collatz: a[n+1] = a[n]/2 if a[n] is even, 3*a[n]+1 if a[n] is odd.
No others less than 250000000. - Sam Handler (sam_5_5_5_0(AT)yahoo.com), Aug 07 2006
|
|
REFERENCES
|
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
R. K. Guy, Unsolved Problems in Number Theory, E16.
|
|
EXAMPLE
|
The Collatz sequence of 31 is 31, 94, 47, 142, 71, 214, 107, 322, 161, 484, 242, 121, 364, 182, 91, 274, 137, 412, 206, 103, 310 ... 310 is a multiple of 31, so the number 31 is "self-contained".
|
|
MATHEMATICA
|
isValid[n_] := Module[{d}, d = n; While[d != 1, If[EvenQ[d], d = d/2, d = 3*d + 1]; If[IntegerQ[d/n], Return[True]]]; Return[False]]; For[n = 1, n <= 250000000, n += 2, If[isValid[n], Print[n]]]; - Sam Handler (sam_5_5_5_0(AT)yahoo.com), Aug 07 2006
|
|
PROGRAM
|
(PARI) m=5; d=2; while(1, n=(3*m+1)\2; until(n==1, n=if(n%2, 3*n+1, n\2); if(n%m==0, print(m, " ", n); break)); m+=d; d=6-d)
|
|
CROSSREFS
|
The ratios "higher multiple of n" / n are given in A059198.
Sequence in context: A044550 A055810 A142522 this_sequence A096731 A039518 A142715
Adjacent sequences: A005181 A005182 A005183 this_sequence A005185 A005186 A005187
|
|
KEYWORD
|
nonn,more
|
|
AUTHOR
|
N. J. A. Sloane (njas(AT)research.att.com).
|
|
EXTENSIONS
|
More terms from Robert G. Wilson v (rgwv(AT)rgwv.com)
Better description from Jack Brennen, Feb 07 2003.
|
|
|
Search completed in 0.002 seconds
|