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!)
A189056 Numbers having in decimal representation at least one common digit with their squares. 8

%I #18 Jun 13 2015 09:50:30

%S 0,1,5,6,10,11,12,13,14,15,16,19,20,21,23,25,26,27,28,30,31,32,35,36,

%T 37,40,41,42,43,45,46,48,49,50,51,52,55,56,60,61,63,64,65,66,68,69,70,

%U 71,73,74,75,76,78,80,81,82,83,85,86,87,89,90,91,93,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120

%N Numbers having in decimal representation at least one common digit with their squares.

%C Complement of A029783; A076493(a(n)) > 0.

%C A258682(a(n)) < a(n)^2. - _Reinhard Zumkeller_, Jun 07 2015

%H Reinhard Zumkeller, <a href="/A189056/b189056.txt">Table of n, a(n) for n = 1..10000</a>

%t Select[Range[0,120],Length[Intersection[IntegerDigits[#], IntegerDigits[ #^2]]]>0&] (* _Harvey P. Dale_, Aug 28 2012 *)

%o (Haskell)

%o a189056 n = a189056_list !! (n-1)

%o a189056_list = 0 : filter (\x -> a258682 x /= x ^ 2) [1..]

%o -- _Reinhard Zumkeller_, Jun 07 2015, Apr 16 2011

%o (PARI) isok(n) = (n==0) || #setintersect(Set(digits(n)), Set(digits(n^2))); \\ _Michel Marcus_, Jun 13 2015

%Y Cf. A029783, A076493, A258682.

%K nonn,base

%O 1,3

%A _Reinhard Zumkeller_, Apr 16 2011

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 00:25 EDT 2024. Contains 372298 sequences. (Running on oeis4.)