Find Jobs
Hire Freelancers

# maths script - combinatorics

Closed

## \$30-250 USD

Paid on delivery
i want to write a maths script or program using php which will calculate/count the possible permutations from a given binary number (consisting of 0 and 1) . compute the binary string and then we need to group them in sets according to certain rules The program will ask for the number of digits e.g 3 which is N and then the number of 1s eg. 2 which is R. so we need to work out two things NcR = 3c2 = 3!/2!.1! = 3 to understand this ill give a very basic example. so in this example N =3 (total 0s and 1s) R =2 (total 1s) we could write the binary string as 110, 101, 011. Group rules. The groups are basically cycles of permuations/binary strings. if we start from any number in a group we eventually get back to that number through repeated application of the rules. Rules: 1. start with a binary number e.g 110 2. MOVE the FIRST DIGIT to the END. (we get 101) 3. OUTPUT the new binary number (here its 101) 4. If the new output has already been outpuuted we ignore it and stop otherwise weRepeat steps 2 and 3 ad infinitum. so here we have 110 , 101, 011 then 110 we are back to 110 so we STOP as we already had it before at the start and this is all the possibilites as we know 3c2 = 3 so the full answer is Total possible binary strings = 3c2 = 3. 1 x Group of length 3 (110 101 011) Note: the total possible binary strings = the sum of the lengths of all the groups here 3 = 3 is obvious. lets try another lets try n=4 r = 2 Binary Strings = 4c2 = 6 1100 1001 0011 0110 ( 1 group of length 4) .... 0110 goes to 1100 so we stop 1010 0101 ( 1 group of length 2) .... 0101 goes to 1010 so we stop this is it so we have 1x4 + 1x2 = 6 as expected. so if i enter N = 4 and R = 2 in the 2 boxes the output will be 1100 1001 0011 0110 ( 1 group of length 4) 1010 0101 ( 1 group of length 2) for N = 3 R = 2 the output was 110 101 011 (1 group of length 3) no time wasters please
Project ID: 33020466

16 proposals
Remote project
Active 2 yrs ago

### Benefits of bidding on Freelancer

16 freelancers are bidding on average \$158 USD for this job
Hi! I am skilled Python software engineer. I am familiar with Python and I have a lot of work experiences in PHP, JavaScript, Mathematics, C Programming and Python. I can start right away. I want to discuss for this project in detail. Please send a message to discuss more regarding this project. Best Regards
\$150 USD in 5 days
5.0 (35 reviews)
6.2
6.2
Hello dear, We are group of professional mathematics and php tutors expert and can solve any questions within given time just text me so we can help you out with your task Kind regards
\$30 USD in 1 day
4.9 (66 reviews)
5.5
5.5
Master in Mathematics and Software Developing️ Hello, I hope you are safe and Doing well I have seen your project requirements, I am looking to discuss them further with you Hope we will meet soon to discuss further . Coming to me, I am a professional algorithm developer and machine learning is my most confident and favorite subject. I have done lots of projects related to machine learning using various languages like C, C++, C#, and Python. Let me know your availability of time to discuss this project through call or chat Stay safe Thanks, regards
\$150 USD in 2 days
5.0 (30 reviews)
5.3
5.3
Hello. I read this job description and I can surely help you to finish this project. I have solid skills in PHP and I have rich experience in solving mathematical problems. I will wait for your reply. LAzar
\$200 USD in 7 days
5.0 (4 reviews)
5.0
5.0
Hello, caffreys1979! ⭐⭐⭐⭐⭐⭐ 100% to perfectly complete your task in three days if the price meets condition. Should choose right candidate to save the time and money! Let us discuss more. Regards, Max
\$250 USD in 3 days
4.8 (27 reviews)
4.9
4.9
I am a well-experienced software developer. I have read your project description with great interests, so I feel I can calculate/count the possible permutations using Python. I promise A+. I can get started right now and keep your timeline. I hope your kind messages to discuss about this project in more detail. Thanks in advance.
\$80 USD in 2 days
5.0 (6 reviews)
3.7
3.7
Hey , I have seen your requirements and I think I could give a hand on it just ping me to start the job Best Regards
\$80 USD in 3 days
5.0 (2 reviews)
2.2
2.2
___________________________________________Hi!__________________________________________________________ I can create a php program that works in the following way: - two fields for input : first for N, second for R - button with a text calculate : after clicking, program displays all permutations according to your rules _______________________________________________________________________________________________________
\$50 USD in 1 day
5.0 (1 review)
2.4
2.4
Hi there! I have plenty of experience with programming and mathematics, and I'm confident I'm able to solve your problem in an algorithmically efficient way. I can implement it on PHP or any other major language (Python, C, C++, Java) with no problems. Please send me a message so we can talk further about your project and your requirements. I'm looking forward to working with you! Sincerely, Heitor L.
\$250 USD in 2 days
5.0 (2 reviews)
1.5
1.5
Hello. I have reviewed your task and I dare say that I am ready to start right now. I’m a professional front end web developer whose portfolio is full of successfully performed projects related to: PHP, C Programming, JavaScript, Python, Mathematics. Just let me know the time you would like to communicate and I am ready to response within 24/7. Looking forward to receiving your prompt feedback. Rgds
\$250 USD in 7 days
0.0 (0 reviews)
0.0
0.0
Hello. Dear. I checked the job description carefully. I can do this perfectly with PHP or C++. Please discuss with me in more detail. Maksim
\$200 USD in 7 days
0.0 (0 reviews)
0.0
0.0
****************************** I have written the program and can provide you the code immediately on payment
\$250 USD in 1 day
0.0 (0 reviews)
0.0
0.0

Clydebank, United Kingdom
4.8
16
Payment method verified
Member since Aug 17, 2010