OFFSET
0,2
COMMENTS
Probably infinite and at least O(10^(n/2)). - David W. Wilson
EXAMPLE
13^2 = 169 and 36 is the next smallest number whose square (in this case 1296) properly contains the digits 1,6,9.
PROG
(Haskell)
import Data.List ((\\), sort)
a065297 n = a065297_list !! n
a065297_list = 1 : f 1 (drop 2 a000290_list) where
f x (q:qs) | null (xs \\ sq) && sort xs /= sort sq = y : f y qs
| otherwise = f x qs
where y = a000196 q; sq = show q; xs = show (x * x)
-- Reinhard Zumkeller, Nov 22 2012
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Floor van Lamoen, Oct 29 2001
EXTENSIONS
More terms from Marc Paulhus, Jan 29, 2002
More terms from David W. Wilson and Marc Paulhus, Feb 05 2002
a(19)-a(20) from Sean A. Irvine, Aug 26 2023
STATUS
approved