dCode is free and its tools are a valuable help in games, puzzles and problems to solve every day! You have a problem, an idea for a project, a specific need and dCode can not (yet) help you? You need custom development? Contact-me!

Tool to list numbers that satisfy a condition on their last digits to list all numbers ending with certain digits.

Answers to Questions

How to list numbers that ends with a given digit?

It is possible to browse all the integers in ascending order and check their last digits. Another faster method is to browse these same integers and to concatenate the final digit(s) to it.

Example: 5, 15, '25, 35 are the first numbers ending with 5 (and therefore all numbers are multiples of 5)

How to list multiples of some numbers?

Some digits positioned at the end of the number make it possible to deduce that the number is a multiple of N.

Example: A number ending in 00 is necessarily multiple of 100 (but also 50, 25, 10, 5, and 2)

Example: A number ending in 5 is necessarily multiple of 5

Example: A number ending in 0, 2, 4, 6 or 8 is necessarily multiple of 2

What is an automorphic number?

An automorphic number is a natural integer \( n \) whose squared value \( n^2 \) ends with the same digits as the number itself.

Example: 76^2 = 5776

Example: 625^2 = 390625

Ask a new question

Source code

dCode retains ownership of the source code of the script Numbers Ending With... online. Except explicit open source licence (indicated Creative Commons / free), any algorithm, applet, snippet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in any informatic langauge (PHP, Java, C#, Python, Javascript, Matlab, etc.) which dCode owns rights will not be given for free. So if you need to download the online Numbers Ending With... script for offline use, check contact page !

dCode uses cookies to customize the site content, analyze user behavior and adapt dCode to your use. Some data is stored and collected for advertising purposes and may be shared with our partners. OK