Hanoi of mobile number calculation

Source: Internet
Author: User

A plate is moved 1 times: two plates are three times:

See three more plates:

First move the top two plates to the transition location, which is the C position, which takes three times. Then move the bottom plate to the target position B position, need once, and then move the C-position plate to B position, this time also need three times (oneself can draw). So the operation of three plates can be separated from the problem, that is, the bottom of the plate and the plate above it, and the number of plates on it is two, so this part is back to the problem of handling two plates, but this part we need to operate two times, so it is 2*3, coupled with the bottom of the plate to the target location, At this time need to operate once, so the total is 2*3+1;

Four plates are also so reasoning.

You can finally get a sequence called a (n) =2a (n-1) +1

Hanoi of mobile number calculation

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.