login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A303811 Least k such that A006666(k)/A006667(k) = prime(n). 0
159, 6, 10, 40, 640, 2560, 40960, 163840, 2621440, 167772160, 671088640, 42949672960, 687194767360, 2748779069440, 43980465111040, 2814749767106560, 180143985094819840, 720575940379279360, 46116860184273879040, 737869762948382064640, 2951479051793528258560 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
A006666 and A006667 are respectively the number of halving and tripling steps in the '3x+1' problem.
For n > 2, it seems that a(n) is of the form a(n) = 5*2^q with q = 1, 3, 7, 9, 13, 15, 19, 25, 27, 33, 37, 39, 43, 49, 55, 57, 63, 67, 69, ... (Numbers q such that q+4 is prime: A172367)
LINKS
EXAMPLE
a(4) = 40 because A006666(40)/A006667(40) = 7/1 = prime(4).
MAPLE
nn:=10^20:
for n from 1 to 10 do:
ii:=0:
for k from 1 to nn while(ii=0) do:
it0:=0:it1:=0:m:=k:
for i from 1 to nn while(m<>1) do:
if irem(m, 2)=0
then
m:=m/2:it0:=it0+1:
else
m:=3*m+1:it1:=it1+1:
fi:
od:
if it1<>0 and it0/it1 = ithprime(n)
then
ii:=1:printf(`%d %d \n`, n, k):
else
fi:
od:
od:
CROSSREFS
Sequence in context: A159418 A159434 A287798 * A207146 A045260 A280967
KEYWORD
nonn
AUTHOR
Michel Lagneau, Sep 10 2018
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 12:33 EDT 2024. Contains 371969 sequences. (Running on oeis4.)