[go: up one dir, main page]

login
Revision History for A258823 (Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing all changes.
Numbers n such that k iterations of n under the '3x+1' map yield k for some k.
(history; published version)
#6 by Harvey P. Dale at Fri Jan 13 10:41:16 EST 2017
STATUS

editing

approved

#5 by Harvey P. Dale at Fri Jan 13 10:41:09 EST 2017
LINKS

Harvey P. Dale, <a href="/A258823/b258823.txt">Table of n, a(n) for n = 1..1000</a>

MATHEMATICA

kQ[n_]:=Module[{tr=Rest[NestWhileList[If[EvenQ[#], #/2, 3#+1]&, n, #>1&]], len}, len = Length[ tr]; Count[Thread[{tr, Range[len]}], _?(#[[1]] == #[[2]]&)]>0]; Select[Range[300], kQ] (* Harvey P. Dale, Jan 13 2017 *)

STATUS

approved

editing

#4 by N. J. A. Sloane at Tue Jun 16 14:02:48 EDT 2015
STATUS

proposed

approved

#3 by Derek Orr at Thu Jun 11 17:25:42 EDT 2015
STATUS

editing

proposed

#2 by Derek Orr at Thu Jun 11 16:22:34 EDT 2015
NAME

allocated Numbers n such that k iterations of n under the '3x+1' map yield k for Derek Orrsome k.

DATA

2, 7, 8, 10, 18, 19, 24, 26, 41, 43, 44, 45, 46, 48, 52, 53, 64, 65, 66, 67, 72, 74, 76, 77, 97, 98, 99, 100, 101, 102, 112, 116, 117, 120, 122, 144, 148, 149, 153, 156, 157, 158, 160, 172, 173, 174, 175, 209, 210, 211, 246, 247, 248, 249, 250, 252, 253, 254, 255, 260, 261, 262, 264, 266, 268, 269, 272

OFFSET

1,1

COMMENTS

Numbers n such that A258822(n) > 0.

EXAMPLE

For n = 6, the '3x+1' map is as follows: 6 -> 3 -> 10 -> 5 -> 16 -> 8 -> 4 -> 2 -> 1. For any possible k, after the k-th iteration, the result does not equal k. Thus 6 is not a member of this sequence.

For n = 7, the '3x+1' map is as follows: 7 -> 22 -> 11 -> 34 -> 17 -> 52 -> 26 -> 13 -> 40 -> 20 -> 10 -> 5 -> 16 -> 8 -> 4 -> 2 -> 1. After 10 iterations, we arrive at 10. So, 7 is a member of this sequence.

PROG

(PARI) Tvect(n)=v=[n]; while(n!=1, if(n%2, k=3*n+1; v=concat(v, k); n=k); if(!(n%2), k=n/2; v=concat(v, k); n=k)); v

n=1; while(n<10^3, d=Tvect(n); c=0; for(i=1, #d, if(d[i]==i-1, print1(n, ", "); break)); n++)

CROSSREFS
KEYWORD

allocated

nonn

AUTHOR

Derek Orr, Jun 11 2015

STATUS

approved

editing

#1 by Derek Orr at Thu Jun 11 16:22:34 EDT 2015
NAME

allocated for Derek Orr

KEYWORD

allocated

STATUS

approved