Find Jobs
Hire Freelancers

Maths script -- Part A

$30-250 USD

Closed
Posted over 3 years ago

$30-250 USD

Paid on delivery
I need a maths script developed. Make responsive PHP please. Overview: Start with a random INTEGER X. If X is EVEN divide by 2 if X is ODD then Multiply by 3, then add 1 then divide by 2 so for X even X maps to X/2 and for X odd X maps to (3X+1) / 2 Part 2: we now need to do 2 things 1. compute the STOPTIME for each number in the interval entered 2. organise them into classes modulo 2 to power S. (S is the stop time) 1. the stoptime is the LEAST number of computations (iterations) required to reach an INTEGER less than X. Example: suppose X = 3 then applying the map rules we get 3 > (3.3 +1)/2 = 5 5 > (3.5 +1)/2 = 8 8 > (8/2) = 4 4 > (4/2) = 2 2 > (2/2) = 1 so the sequence generated (the trajectory) is 3 > 5 > 8 > 4 > 2 > 1 so the STOPTIME for X = 3 is 4, since it takes 4 computations for the output to first reach a number less than 3. Note: its not 5 since 5 is not the lowest number of iterations. its the least number of iterations to reach the target. Similarly for X = 7 we have a sequence 7,11,17,26,13,20,10,5,8,4,2,1 so the stop time for X=7 is 7 you can think of the stoptime S as a function of X i.e it depends on X. S(3) = 4 and S(7) = 7. Suppose our interval is 3 to 31 (increment of 4) e.g 3,7,11,15,19,23,27,31 then we can display the stop times for each X= {3,7,11,15,19,23,27,31} S(X) = {4,7,5,7,4,5,59,56} But this is the first part we now have to arrange them in classes modulo 2 to power of S. so we construct the classes for each S C[S(X)=4] = {3,19,35...} C[S(X)=7] = {7,135,263...} C[S(X)=5] = {11,43,75...} C[S(X)=7] = {15,143,271....} C[S(X)=5] = {23,55,87...} C[S(X)=59] = {27,27+2^59,27+2.2^59...} C[S(X)=56] = {31,31+2^56,27+2.2^56...} Note: its quite technical, u need to make sure no classes get duplicated they should all be DISJOINT. youll notice in the above example there is only 1 class for S = 4 but two for S=5 and S=7, this will happen but the important thing is they are DISJOINT (i.e contain no common integers) or their intersection is zero. the easieat way to find all the disjoint classes is to check from 3 up to ( 2 to power of S) - 1 e.g for S=5, we check from 3 up to 2^5 - 1 = 31 i.e from 3 to 31 we find the values 11 and 23 have S = 5. this is the only values from 3 to 31. so this means there is exactly 2 classes modulo 2^5 for S = 5. 11,43,75,107...... 23,55,87,119..... there are NO OTHERS as the first in each class will be between 3 and 2^S -1 for S = 7 we check from 3 up to 127 and again we find the following classes modulo 128 (2^7) 7,135,263.... 15,143,271... 59,187,315.... There are no others as the next one after 59 is 135 but that actually lives in the first class 7,135,263, its the 2nd element of the first class. OK so now we know how to arrange each X into different Stoptime classes modulo 2^S (S is stoptime) Now we need some meaningful data output all i need is 2 columns of output in a csv format for excel. col 1 will be the stop time and col 2 will be the number of classes for that stoptime... ill type the first few rows below S C 4 1 5 2 7 3 the first 3 rows are above... S is the stoptime and C is the number of disjoint classes modulo 2^S REQUIREMENTS ----------------------------- Enter Start End and Increment e.g Start = 3 End = 31 Increment = 4 this will calculate the stoptimes for 3 up to 31 inclusive (increment of 4) then it will compute the number of disjoint classes for each of these stop times up to 31. we output this to csv file with 2 columns as described above Note: no time wasters, i will only pay on delivery of quality work, the script must be fast and be able to handle very large numbers. you must communicate with me when needed, no ignorance or arrogance, all i want is quality work, no moaning, complaining or bad attitudes. Note: im open to other suggestions to make the script even faster so please be flexible also.
Project ID: 29239624

About the project

7 proposals
Remote project
Active 3 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
7 freelancers are bidding on average $138 USD for this job
User Avatar
Dear Patrick M., I can do a very clean code for you. It will be easy to understand and I will declare proper variables and for all calculations I will use proper functions. Can we connect over chat so I can ask some questions that are important to make your project in a perfect way? I will enjoy connecting with you to learn more about your vision and goals, and how effectively my services can help you to achieve success. I love working with like-minded people and I believe we will make long-term business relations! Onward, Regards Muhammad Abubaker
$226 USD in 5 days
4.9 (359 reviews)
8.5
8.5
User Avatar
Hello, how are you? I am very interested in your project. I am an expert in Matlab, Python as well as Mathematics/ Physics. I have a lot of experiences in Programming. So I think I can help you. Please contact with me. Thanks.
$30 USD in 1 day
4.9 (105 reviews)
6.6
6.6
User Avatar
Greetings, my name is Ahmad. I am Head of Client Relations and a web-developer myself. I would love to have an opportunity to discuss your project with you. With over 5 years of experience in mobile/web design and development we are certain we will not only execute this job but exceed your expectations. Our Development Standards & Practices:- Our Portfolio is verified with excellent client feedback. We develop Retina Ready and responsive designs across all platforms (Mobile, Tablets & Desktop) + We make sure that we follow the latest coding standards. We do not want to bore you with a copy-paste proposal and because we believe in the saying "Actions speak louder than words", we will let our work do the talking, so feel free to look at our portfolio and if you like our projects, feel free to reach out to us. We have 5+ years of experience in Web and mobile development. Reasons to select us: - 100% Job Success rate. - Verified Portfolio. - 5 Star feedback - 100% client recommendation. - We have our own server and you will be able to check the progress on daily basis. We believe communication is key to any successful project, our dedicated client relations officers will make sure that you get updates on time and develop. This will enable us to make sure we communicate well and that both parties are completely comfortable with the scope of the project. Please let us know a time that works best for you and we'll make sure that we make ourselves available.
$140 USD in 7 days
4.8 (14 reviews)
4.8
4.8
User Avatar
Hi, ✔️ I am ready to start the project right now. Your Project made me interested to reach out. If your looking a expert PHP developer I am here to assist you. Already I have read your requirements. I can easily create Math Script. Let's discuss more over chat. Last 10 years I have been helping business team to develop web application and all services. I am very professional with my client and all the time I try to deliver my work within deadline. My communication level is super friendly .You will be served reliability, flexibility and honestly. I am eagerly waiting to hear from you. My expertise are - ✔️ WordPress ✔️ Woo-commerce ✔️ eCommerce ✔️ Laravel ✔️ Node.js ✔️ Vue.js ✔️ CodeIgniter ✔️ Core PHP ✔️ AJAX ✔️JavaScript ✔️ MySQL ✔️ HTML ✔️ CSS Best Regards, Farhad
$70 USD in 3 days
5.0 (23 reviews)
4.3
4.3
User Avatar
Hello, I am Algorithm expert. I can do your project in short time. Please contact me. so let's discuss more. Thank you. From Nemanja.
$140 USD in 7 days
5.0 (3 reviews)
3.6
3.6
User Avatar
Hi there, I’d like to be considered for your project. I’m a Software and Full-Stack Developer with a 2 year background in web development. I have read the description of your project and understood that you are looking for a comparable website developer. I have experience in developing products using HTML, HTML5, CSS, CSS3, java script, j Query, Bootstrap, PHP, Laravel, Ajax My Portfolio: https://www.freelancer.com/u/engshiko1999 WHY ME? On time Delivery Fast Turn Around Unlimited Revisions Excellent communication skills Customer support even after developing a product. May I have more information about the features you are willing to have on your website and if you would like to share any reference website like which you want your website to be? Thanks for your consideration. Shawkey
$110 USD in 5 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED KINGDOM
Clydebank, United Kingdom
4.8
13
Payment method verified
Member since Aug 17, 2010

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.