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!)
A045620 Numbers k such that digits of k^3 include digits of k^2. 1
0, 1, 5, 10, 25, 50, 65, 100, 146, 250, 405, 500, 510, 521, 615, 650, 768, 945, 965, 1000, 1004, 1040, 1050, 1085, 1126, 1145, 1203, 1216, 1219, 1222, 1452, 1460, 1476, 1480, 1482, 1638, 1706, 1878, 2002, 2020, 2199, 2204, 2260, 2276, 2326, 2450, 2470, 2476 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
EXAMPLE
a(8) = 146 because 146^3 = 3112136 includes all digits of 146^2 = 21316.
PROG
(Python)
from itertools import count, islice
from collections import Counter
def A045620_gen(startvalue=0): # generator of terms >= startvalue
return filter(lambda k:Counter(str(m:=k**2))<=Counter(str(k*m)), count(max(startvalue, 0)))
A045620_list = list(islice(A045620_gen(), 20)) # Chai Wah Wu, Apr 03 2023
CROSSREFS
Sequence in context: A072421 A163477 A084664 * A025625 A112024 A362002
KEYWORD
easy,nonn,base
AUTHOR
EXTENSIONS
Edited by N. J. A. Sloane, Nov 01 2007, at the suggestion of Alexander R. Povolotsky
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 May 7 20:13 EDT 2024. Contains 372317 sequences. (Running on oeis4.)