Vckbaseblog is a mathematical problem-(how to determine the multiples of 11)

Source: Internet
Author: User

Author: zfive5 (zhaozidong)
Email: zfive5@yahoo.com.cn

Noon break, trainer

N = A0 + A1 * 10 + A2 * 100 + A3 * 1000 +... + am * 10 ^ m +...

N = A0 + A1 * (10 + 1) + A2 * (100-1) + A3 (1000 + 1) +... am * (10 ^ m-(-1) ^ m)

-(A1-a2 + A3 + ....)

10 ^ M-1 = (11-1) ^ m-1 (10 ^ m-1 is a multiple of 11 when M is an even number, according to the quadratic expansion formula)
10 ^ m + 1 = (11-1) ^ m + 1 (when M is an odd number, 10 ^ m + 1 is a multiple of 11, according to the quadratic expansion formula)

N = a0-a1 + a2-a3... + 11 * x

If n is a multiple of 11, the sum of all odd digits minus the sum of even digits is a multiple of 11!

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.