This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A045620 #19 Apr 03 2023 18:23:41 %S A045620 0,1,5,10,25,50,65,100,146,250,405,500,510,521,615,650,768,945,965, %T A045620 1000,1004,1040,1050,1085,1126,1145,1203,1216,1219,1222,1452,1460, %U A045620 1476,1480,1482,1638,1706,1878,2002,2020,2199,2204,2260,2276,2326,2450,2470,2476 %N A045620 Numbers k such that digits of k^3 include digits of k^2. %e A045620 a(8) = 146 because 146^3 = 3112136 includes all digits of 146^2 = 21316. %o A045620 (Python) %o A045620 from itertools import count, islice %o A045620 from collections import Counter %o A045620 def A045620_gen(startvalue=0): # generator of terms >= startvalue %o A045620 return filter(lambda k:Counter(str(m:=k**2))<=Counter(str(k*m)),count(max(startvalue,0))) %o A045620 A045620_list = list(islice(A045620_gen(),20)) # _Chai Wah Wu_, Apr 03 2023 %Y A045620 Cf. A029772, A046827, A046829. %K A045620 easy,nonn,base %O A045620 1,3 %A A045620 _Erich Friedman_ %E A045620 Edited by _N. J. A. Sloane_, Nov 01 2007, at the suggestion of _Alexander R. Povolotsky_