Bueno este wsq fue tan difícil de realizar que solo por eso lo voy a poner en español jaja, y esto es de lo que se trata:

Your jobs is to create a program that asks the user for two pieces of data:

  • The lower bound of the sequence
  • The upper bound of the sequence
Then you check the values from the lower bound (inclusive) to the upper bound (inclusive) and make a report of them. During the analysis of each number, if a Lychrel number is found it should be reported immediately with something like “Found a Lychrel number: 196”

Details

The report must show:
  • The range of numbers analysed (lower to upper bound)
  • The number of natural palindromes (no addition to inverse needed)
  • The number of non-Lycherels encountered (become palindromes)
  • The number of Lycherel number candidates (that did not converge to palindrome)

Since you will not be able to prove that a number is Lycherel (since you cannot computer forever to check), our definition for a Lycherel candidate will be if a number does not converge after 30 iterations of applying the addition to the inverse.

Wow, Ken si que se esforzó en complicarnos un poco la vida jaja, primero que nada tenemos que entender que es un número Lychrel y este link fue de gran ayuda.

Para entender un poco mejor que era lo que necesitábamos hacer realmente en el programa el video de Ken fue de gran ayuda, y lo dejo aquí por si alguien no lo ha visto.

Y después de varios intentos fallidos, el programa funcionó correctamente, o al menos eso creo. Aquí están los screenshots :

#Wsq11

the second part and the terminal:

#Wsq11

and the code un GitHub

CC BY 4.0 #Wsq11 by andreatrejod is licensed under a Creative Commons Attribution 4.0 International License.