C. Two answers

Source: Internet
Author: User

1. If p is the perimeter of a right angle triangle with integral length sides, {a, B, c}, there are exactly three solutions for p = 120. click

{, 52}, {, 51}, {, 50}

For which value of p <= 1000, is the number of solutions maximized?

The translation is:

If p is such a number, the sum of the three tuples {a, B, c} is p, and a, B, and c can form three edges of a right triangle. When p = 120, there are three solutions:

{, 52}, {, 51}, {, 50}

What is the maximum number of p solutions that meet the preceding conditions within p <= 1000?

Answer: 840.

{Code placeholder}

2. A permutation is an ordered arrangement of objects. for example, 3124 is one possible permutation of the digits 1, 2, 3 and 4. if all of the permutations are listed numerically or alphabetically, we call it lexicographic order. the lexicographic permutations of 0, 1 and 2 are:

012 021 102 120 201 210

What is the millionth lexicographic permutation of the digits 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9? Click

A permutation is an ordered arrangement of objects. For example, 3124 is a possible arrangement of numbers 1, 2, 3, and 4. It is called a dictionary order to list all numbers or letters. The dictionary sorting of numbers 0, 1, and 2 is:

012 021 102 120 201 210

What are the 1,000,000th (1 million) lexicographic sorting numbers of numbers?

Answer: 2783915460 {code placeholder}

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.