login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A162016 Numbers k such that the sum of the decimal digits of k is a substring of k and of k^3. 2
1, 4, 5, 6, 9, 10, 40, 50, 60, 90, 100, 400, 500, 600, 900, 910, 1000, 1009, 1018, 1027, 1145, 1158, 1178, 1198, 1245, 1345, 1363, 1427, 1509, 1609, 1672, 1736, 1809, 1810, 1814, 1836, 2177, 2710, 2712, 3610, 3612, 4000, 4125, 4510, 4514, 5000, 5134, 5144, 5410 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
1158 is a term because its digital sum is 1+1+5+8 = 15 and "15" is a substring of 1158 and of 1158^3 = 1552836312.
PROG
(Python)
def sd(n): return sum(map(int, str(n)))
def ok(n): s = str(sd(n)); return s in str(n) and s in str(n**3)
print([k for k in range(1, 5411) if ok(k)]) # Michael S. Branicky, Jan 31 2022
CROSSREFS
Sequence in context: A255634 A075903 A029942 * A242040 A206822 A195993
KEYWORD
nonn,base
AUTHOR
Claudio Meller, Jun 24 2009
EXTENSIONS
a(47) and beyond from Michael S. Branicky, Jan 31 2022
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 21 20:59 EDT 2024. Contains 374475 sequences. (Running on oeis4.)