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 A076493 #12 Oct 15 2013 22:31:34 %S A076493 1,1,0,0,0,1,1,0,0,0,2,1,1,1,1,1,1,0,0,1,1,1,0,1,0,2,1,2,1,0,1,1,1,0, %T A076493 0,1,1,1,0,0,1,1,1,1,0,1,1,0,1,1,2,1,1,0,0,1,1,0,0,0,2,1,0,2,2,1,1,0, %U A076493 1,1,1,1,0,1,2,1,2,0,1,0,1,1,1,1,0,1,1,1,0,1,1,1,0,1,0,2,2,1,1,1,2,2,2,2,2,3,2,1,1,1 %N A076493 Number of common (distinct) decimal digits of n and n^2. %C A076493 a(A029783(n)) = 0, a(A189056(n)) > 0; 0 <= a(n) <= 10, see example for first occurrences. [_Reinhard Zumkeller_, Apr 16 2011] %H A076493 Reinhard Zumkeller, <a href="/A076493/b076493.txt">Table of n, a(n) for n = 0..10000</a> %e A076493 a(2) = #{} = 0: 2^2 = 4; %e A076493 a(0) = #{0} = 1: 0^2 = 0; %e A076493 a(10) = #{0,1} = 2: 10^2 = 100; %e A076493 a(105) = #{0,1,5} = 3: 105^2 = 11025; %e A076493 a(1025) = #{0,1,2,5} = 4: 1025^2 = 1050625; %e A076493 a(10245) = #{0,1,2,4,5} = 5: 10245^2 = 104960025; %e A076493 a(102384) = #{0,1,2,3,4,8} = 6: 102384^2 = 10482483456; %e A076493 a(1023456789) = #{0 .. 9} = 10: 1023456789^2 = 1047463798950190521. %t A076493 Table[Length[Intersection[IntegerDigits[n], IntegerDigits[n^2]]], {n, 1, 100}] %o A076493 (Haskell) %o A076493 import Data.List (intersect, nub) %o A076493 import Data.Function (on) %o A076493 a076493 n = length $ (intersect `on` nub . show) n (n^2) %o A076493 -- _Reinhard Zumkeller_, Apr 16 2011 %Y A076493 Cf. A006880, A076489-A076491. %Y A076493 Cf. A000290, A043537. %K A076493 base,nonn %O A076493 0,11 %A A076493 _Labos Elemer_, Oct 21 2002 %E A076493 Initial 1 added and offset adjusted by _Reinhard Zumkeller_, Apr 16 2011