OFFSET
1,2
COMMENTS
Subsequence of A018834. - Chai Wah Wu, Apr 04 2023
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..64
MATHEMATICA
Reap[For[n = 1, n < 10^8, n++, If[Mod[n, 10] != 0, If[StringPosition[ToString[n^2], ToString[n]] != {}, Print[n]; Sow[n]]]]][[2, 1]] (* Jean-François Alcover, Apr 04 2013 *)
PROG
(Haskell)
a046831 n = a046831_list !! (n-1)
a046831_list = filter ((> 0) . (`mod` 10)) a018834_list
-- Reinhard Zumkeller, Jul 27 2011
(Python)
from itertools import count, islice
def A046831_gen(startvalue=0): # generator of terms >= startvalue
return filter(lambda n:n%10 and str(n) in str(n**2), count(max(startvalue, 0)))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved