cp's OEIS Frontend

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.

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

This page as a plain text file.
%I A189056 #18 Jun 13 2015 09:50:30
%S A189056 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 A189056 37,40,41,42,43,45,46,48,49,50,51,52,55,56,60,61,63,64,65,66,68,69,70,
%U A189056 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 A189056 Numbers having in decimal representation at least one common digit with their squares.
%C A189056 Complement of A029783; A076493(a(n)) > 0.
%C A189056 A258682(a(n)) < a(n)^2. - _Reinhard Zumkeller_, Jun 07 2015
%H A189056 Reinhard Zumkeller, <a href="/A189056/b189056.txt">Table of n, a(n) for n = 1..10000</a>
%t A189056 Select[Range[0,120],Length[Intersection[IntegerDigits[#], IntegerDigits[ #^2]]]>0&] (* _Harvey P. Dale_, Aug 28 2012 *)
%o A189056 (Haskell)
%o A189056 a189056 n = a189056_list !! (n-1)
%o A189056 a189056_list = 0 : filter (\x -> a258682 x /= x ^ 2) [1..]
%o A189056 -- _Reinhard Zumkeller_, Jun 07 2015, Apr 16 2011
%o A189056 (PARI) isok(n) = (n==0) || #setintersect(Set(digits(n)), Set(digits(n^2))); \\ _Michel Marcus_, Jun 13 2015
%Y A189056 Cf. A029783, A076493, A258682.
%K A189056 nonn,base
%O A189056 1,3
%A A189056 _Reinhard Zumkeller_, Apr 16 2011