Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of Lichriel number by java

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article "java how to solve the Lickerell number problem", the sample code in the article is very detailed and has a certain reference value, interested friends must refer to, for "java how to solve the Lickerell number problem", Xiaobian sorted out the following knowledge points, please follow the pace of the editor step by step to understand slowly, and then let's get into the topic.

47 is inverted and added to get 47 + 74 = 121, which is a palindrome number.

Not all numbers can be transformed into palindromes as quickly as this. For example,

349 + 943 = 1292

1292 + 2921 = 4213

4213 + 3124 = 7337

In other words, 349 needs to iterate three times to become palindromes.

Although it has not been proved, some numbers, such as 196, are thought to never become palindromes. If a number can never be transformed into a palindrome by reverse order and addition, it is called a Lichriel number. Due to the limitations of theory and the requirements of the problem, until it is proved that these numbers are indeed Lichriel numbers. In addition, it is known that for any number less than 10,000, it can either become palindromes within 50 iterations, or no one can use all current computing power to turn iterations into palindromes. In fact, 10677 is the first number that needs more than 50 iterations to become palindromes. The palindromes are

4668731596684224866951378664 (53 iterations, 28 digits).

Surprisingly, some palindromes are themselves Likrell numbers; the first example is 4994.

How many Lichriel numbers are there in numbers less than ten thousand?

Note: on April 24, 2007, the title was slightly modified to emphasize the limitations of the current Lichriel number theory.

What is Java? Java is an object-oriented programming language that can write desktop applications, Web applications, distributed systems, and embedded system applications.

The above is all the contents of the article "how to solve the Likriel number problem in java". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report